Hi and thanks for answer.
Only one doubt: after dropping the observations and running xtregar,
the results says
Obs per group: min = 1
avg = 4.6
max = 9
Why obs per group are 1? It shouldn't be 5?
On Fri, Mar 20, 2009 at 9:21 PM, Scott Merryman
<[email protected]> wrote:
> bysort panelvar: keep if _N>4
>
> Scott
>
> On Fri, Mar 20, 2009 at 8:01 PM, Christian Bustamante <[email protected]> wrote:
>> Hi
>>
>> I'm runing a regression model with a unbalanced panel. I want to drop
>> observations of individuals that doesn't have at least observations
>> for 4 years. How can I do that?
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
--
CdeB
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/