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)
Event study - sorting groups and assigning estimation windowsHello Statalist! Since my last post didn't get any answers, im trying with the help of the FAQ to c…
Mixed command and random effectsHi. I have data on 600 participants at 5 time points with 2 measurements at each time point for aver…
Gini decomposition by subgroups - ineqdec0Hi everyone, I am estimating the monetary value of in-kind benefits (like education) to be added to …
Saving error messageHi all, I am using a plug-in called traj from https://www.andrew.cmu.edu/user/bjones/strtxmpl2.htm.…
Difference in Differences with propensity score matching for repeated cross sectional surveysDear Statalisters! I'm pretty new to Statalist and found a lot of posts regarding DID and PSM, but n…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting Survival Curve (Multi-level modeling and interaction terms)
Post a Comment