Hi,
I have a panel dataset with 13 waves, where the identifier is hhid (household ID). My dependent variable is saving1 (binary, which takes either 1 or 0).
When I run a Hausman test for xtlogit RE vs FE, I get the error message:

I believe this is because when I run the xtlogit, fe model, I get this
Anyway, I wanted to show that running a FE model would drop many values for which saving1 is time-invariant.
E.g. as can be seen in the screenshot below, for hhid=6, saving1 varies over time, whereas for hhid=21, saving1=0 for all 13 waves.

So I wanted to display
but only if saving1==0 or if saving1==1 for all 13 waves.
Something like the following (although I know my attempt is incorrect):
Would you be able to suggest the code for this please?
I have a panel dataset with 13 waves, where the identifier is hhid (household ID). My dependent variable is saving1 (binary, which takes either 1 or 0).
When I run a Hausman test for xtlogit RE vs FE, I get the error message:
model fitted on these data fails to meet the asymptotic assumptions of the Hausman test;
I believe this is because when I run the xtlogit, fe model, I get this
note: multiple positive outcomes within groups encountered.
note: 60 groups (767 obs) dropped because of all positive or all negative outcomes.
note: 60 groups (767 obs) dropped because of all positive or all negative outcomes.
Anyway, I wanted to show that running a FE model would drop many values for which saving1 is time-invariant.
E.g. as can be seen in the screenshot below, for hhid=6, saving1 varies over time, whereas for hhid=21, saving1=0 for all 13 waves.
So I wanted to display
Code:
tab hhid saving1
Something like the following (although I know my attempt is incorrect):
Code:
tab hhid year if saving1==0 or saving1==1 for nyear==13
Comment