xi: xtgee pul per2Xlagccm period2 lagccm age if
sex==0&racewh==1&period==1|2 [pweight=wt], robust corr(exch)
You've got a problem with your "period==1|2". It needs to be (with
spaces to make things easier to read:
sex==0 & racewh==1 & (period==1 | period==2)
YOu can't do "something==this|that"; you need to do "something==this |
something==that",
or use the inlist function: inlist(something,this,that).
Your confusing results occurs because Stata is evaluating:
(sex==0&racewh==1&period==1) | (2)
and (2) is always true.
--Nick Winter
*
* 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/