I am having difficulty plotting the different survival curves (specifically the hazard) following multi-level hazard models. My code looks something like this:
mestreg $dems $rf $cov i.exit_kin i.ch_male#i.ch_race || rmvlcty:, dist(weib)
stcurve, haz at1(ch_male=1 ch_race=1) at2(ch_male=1 ch_race=2) at3(ch_male=0 ch_race=1) at4(ch_male=0 ch_race=2)
The plot lists all of the groups above, but only shows one line. When I just do the streg command instead of mestreg I get a plot with 4 different lines. Could someone else me figure out why I no longer get the 4 separate lines when I use a multi-level model instead? In both streg and mestreg the interaction term is significant (and the same coefficient).
Related Posts with Plotting Survival Curve (Multi-level modeling and interaction terms)
Creating different variables for firm-yearHi Statlist community, I have a dataset where I have different institutional investors for each yea…
How to construct children data based on their parents' data?Hi all, I have a household dataset in which respondents' data are in a long layout but their childr…
Error 9901 in Excel export_xlshwritestr(): 9901 Stata returned error export_excel_write_file(): - function returned error expo…
Year and Industry Fixed Effects in Cross-sectional logit regressionHi Everyone, I would appreciate your help on the below: I am using Stata 17. I have a cross-sectiona…
Exporting F-Statistics and p-value after ivreg2 commandDear all, I am using Code: ivreg2 command to do my analysis with Stata 15 (IC). However, I need to…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting Survival Curve (Multi-level modeling and interaction terms)
Post a Comment