Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: ttest equality of means panel data


From   [email protected]
To   [email protected]
Subject   st: ttest equality of means panel data
Date   Sun, 25 Feb 2007 17:36:31 -0800 (PST)

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/



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