[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: RE: Using -if- when running panel-corrected OLS pooled regressions
Thanks for that. My reasoning behind using -if- was to get round the
problem of -xtpcse- failing to run because of missings, which was what
appeared to be happening. When I replaced them with zeros, it ran, but I'm
uncomfortable with the potential consequences of making those changes, for
the reasons I gave earlier.
> I see no limitation on the use of -if- with -xtpcse-.
> If your syntax here is a guide to what you typed,
> the comma in front of -if- is incorrect.
> Or it may be that your way of spelling out
> if [13 indvars] ! .
> was incorrect.
> But in any case a condition of that form
> is redundant with almost all
> estimation commands. Stata automatically
> ignores observations with values missing
> on the covariates (independent variables,
> if you will).
> Clive Nicholas
>> I've tried to get round this by using -if- to take out
>> cases with missings
>> on key variables using OLS-PCSE models. I tested this using
>> just two Xs,
>> and it ran. But when trying the full model:
>> -xtpcse [depvar] [50 indvars], if [13 indvars]!=.-,
>> it returns an error saying that -if- isn't allowed!
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
School of Geography, Politics and Sociology,
University of Newcastle-upon-Tyne,
* For searches and help try: