Suppose your panelid is -id- and that you have
annual data for each of 10 years. Then
bysort id : keep if _N == 10
keeps only complete panels.
Otherwise, see -help statsby-.
Nick
[email protected]
[email protected]
> does anyone of you know how to balance panel data keeping
> only the individuals
> with observations in all the years?
> Further, is there a way of plotting the R squared (of separate annual
> regressions) against the years, without copying the R values
> by hand to
> generate a new variable?
*
* 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/