Dear Statalist subscribers,
I have an unbalanced quasi-panel data set over several years. That is, I have
observations on some people for the entire period, but for others, for one or
more periods. The respondents were not followed, but the sample was refreshed
with new respondents in later years.
I want to test the equality of means of var1 depending on the value of var2.
Both are dummy variables. This is what I would do:
ttest var1, by(var2);
But, because it's a panel the observations are correlated across time - how can
I perform a ttest to account for that? I greatly appreciate your help.
Jelena Zurovac
*
* 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/