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).
Nick
[email protected]
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/