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)
Unequal interval systematic samplingI can easily do systematic sampling from the equal interval sample like 1,2,3,4,5,6,7,8,9,........ B…
How to calculate percentage of certain categories using bysort command?I have a dataset at the individual level which includes a variable on education. The variable takes …
delete observations according to some rulesDear statalist, I have two sets of data and I append them together. The first set consists of a ser…
Penalized spline models with -mixed-Greetings, all. I recently ran across a StataCorp presentation by Roberto Gutierrez that discussed …
Loop over variablesinput double(month202001 month202002 month202003 month202004 month202005 month202101 month202102 mon…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting Survival Curve (Multi-level modeling and interaction terms)
Post a Comment