Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Using -if- when running panel-corrected OLS pooled regressions


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Using -if- when running panel-corrected OLS pooled regressions
Date   Mon, 24 Nov 2003 10:49:02 -0000

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 
n.j.cox@durham.ac.uk 

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index