Dear all,
I am new to Stata. I am analyzing a dataframe made on a survey. The survey is conducted every two years and it is about complementary pension; my answer is about the commands that I should use to run a simple LPM (without effect) and a LPM with fixed effect. I also run a probit model without effect and a probit with random effect, but I was interested also on LPM.
I used the xtset command to create the panel df:
xtset id year
where id is the individual variable and year is time variable. The dependent variable is a dummy (pension) which takes value 1 if the individual has a complementary pension form and 0 otherwise.
I read on the website and I suppose that the following commands should be right:
regress pension i.sex age sqage i.area i.instruction, robust
xtreg pension i.sex age sqage i.area i.instruction, fe vce(cluster id)
probit pension i.sex age sqage i.area i.instruction
xtprobit pension i.sex age sqage i.area i.instruction, re
and the mfx compute command to get the marginal effects
My answer regard mostly the command for the LPM: I know I can't change the nature of pension in factor and use regress or xtreg and so I am not sure the these commands give me the right results when the dependent variable is binary but coded as numeric in stata.
Thanks in advance
I am new to Stata. I am analyzing a dataframe made on a survey. The survey is conducted every two years and it is about complementary pension; my answer is about the commands that I should use to run a simple LPM (without effect) and a LPM with fixed effect. I also run a probit model without effect and a probit with random effect, but I was interested also on LPM.
I used the xtset command to create the panel df:
xtset id year
where id is the individual variable and year is time variable. The dependent variable is a dummy (pension) which takes value 1 if the individual has a complementary pension form and 0 otherwise.
I read on the website and I suppose that the following commands should be right:
regress pension i.sex age sqage i.area i.instruction, robust
xtreg pension i.sex age sqage i.area i.instruction, fe vce(cluster id)
probit pension i.sex age sqage i.area i.instruction
xtprobit pension i.sex age sqage i.area i.instruction, re
and the mfx compute command to get the marginal effects
My answer regard mostly the command for the LPM: I know I can't change the nature of pension in factor and use regress or xtreg and so I am not sure the these commands give me the right results when the dependent variable is binary but coded as numeric in stata.
Thanks in advance
Comment