[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: ttest equality of means panel data
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.
* For searches and help try: