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)
Running Stata on Raspberry Pi 4B (a guide)I know this is more of a ‘geek’ idea but in case you can’t always take your laptop with you (like me…
Patient Flow FrequenciesHi Everyone, I am working with a datset that has following variables: 1) mrn: unique identifier 2)…
Identifying negative and positive charge amounts across sequential idsHi. I have a problem with my medical claims data. Claims are identified by a “clmnbr” which can iden…
* Tests of endogeneityDear all, I will please like to know which result is usually reported for test of endogeneity after…
Time-Invariant instrument variable and country fixed effects in pooled cross-sectional datasetI have following question; Can I use time-invariant instrumental variable while controlling for coun…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting Survival Curve (Multi-level modeling and interaction terms)
Post a Comment