Hi
I am currently estimating the relationship between happiness and age using panel data with fixed effect.
Assuming my model is " happy age male child i.marital birthyear, fe "
Question 1:
I would like to replicate the method of Clark (2007) "Born To Be Mild? Cohort Effects Don’t (Fully) Explain Why Well-Being Is U-Shaped in Age" (http://ftp.iza.org/dp3170.pdf)
I was wondering if there is a command for STATA to plot the coefficient of each variables to see the trend. In the picture attached, coefficients of each age dummy variable has been plot to see the U-Shaped across each age group.
I have tried this with the command marginsplot and coefplot and they don't seem to be able to replicate Clark (2007)'s graph.
Question 2:
I would like to try using Movshuk's (2011) semiparametric model with varying-coefficient. -> https://www.jstage.jst.go.jp/article...0/4_0_133/_pdf
so the age variables will be a function of s(age), which is a nonparametric estimate of the overall age effect.
However, I am quite confused about how this can be done as the article used R instead of STATA.
From my understanding, to do so we need to use the command xtmixed????
using the my model then the command should be
" xtmixed happy age male child i.marital birthyear || _all: age" ????? Is this correct?
or is it better to use the command XTNPTIMEVAR ? as it is a non-parametric time-varying coefficients panel data models with fixed effects
I also have the same question with Question 1 that how can I plot the value of the age coefficient from this model to see the it's trend.
Thank you so much in advance,
Viola
I am currently estimating the relationship between happiness and age using panel data with fixed effect.
Assuming my model is " happy age male child i.marital birthyear, fe "
Question 1:
I would like to replicate the method of Clark (2007) "Born To Be Mild? Cohort Effects Don’t (Fully) Explain Why Well-Being Is U-Shaped in Age" (http://ftp.iza.org/dp3170.pdf)
I was wondering if there is a command for STATA to plot the coefficient of each variables to see the trend. In the picture attached, coefficients of each age dummy variable has been plot to see the U-Shaped across each age group.
I have tried this with the command marginsplot and coefplot and they don't seem to be able to replicate Clark (2007)'s graph.
Question 2:
I would like to try using Movshuk's (2011) semiparametric model with varying-coefficient. -> https://www.jstage.jst.go.jp/article...0/4_0_133/_pdf
so the age variables will be a function of s(age), which is a nonparametric estimate of the overall age effect.
However, I am quite confused about how this can be done as the article used R instead of STATA.
From my understanding, to do so we need to use the command xtmixed????
using the my model then the command should be
" xtmixed happy age male child i.marital birthyear || _all: age" ????? Is this correct?
or is it better to use the command XTNPTIMEVAR ? as it is a non-parametric time-varying coefficients panel data models with fixed effects
I also have the same question with Question 1 that how can I plot the value of the age coefficient from this model to see the it's trend.
Thank you so much in advance,
Viola
Comment