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)
Workaround for suest restriction on brr [r(322)]?Hi Everyone, I have survey data that uses brr for its error estimation. I would like to compare the…
How to convert the reg command to reghdfe code in controlling three dimensions?How to convert this code controlling for three ways fixed effect to reghdfe code? Code: reg y x i.…
How to create a new binary variable (0-1) based on some conditions in Stata?input id t1 t2 t3 1 1.5 1.4 1.6 2 1.5 . 1.9 3 . 2.0 1.6 4 . . 2.2 5 1.9 2.1 2 6 1.8 2.0 1.9 7 . . . …
Continuous vs binary independent variable in logistic regressionI'm new to statistics and coding so apologize if this is a dumb question but here it goes: I'm runni…
How to create a varaible based on each value of existing variable in did_imputation?I have the Syntax of did_imputation is as below Array I am wondering how to create the variable Ei.…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting Survival Curve (Multi-level modeling and interaction terms)
Post a Comment