Dear all,
I ran a Cox model with strata(year),
stcox X1 X2 c.X1#i.X2, strata(year) vce(robust)
X1 is a continuous variable, X2 is a category variable (=1 or 0), now I want to plot the survival and hazard curves to show the effects of interaction, may I know the commands? stcurve is invalid after strata().
Thank you.
Best
Josh
Related Posts with Plot survival curve of the interaction in Stratified Cox Model
Creating a variable for partner's health scoreIn a dataset in the form of: addressnr hhid general_health 1 1 5 2 1 6 3 2 9 4 2 8 5 3 2 6 3 4 With …
Code Interpret Of Loop Code: clear set obs 100 gen setA=0 gen setB=0 gen V1 = -1 + rnormal() gen V2 = 1 + rnormal() ge…
Using -foreach- to count for string variablesDear Statalists, I have a dataset with 28 string variables named"ox*tc", and the * represent to num…
putwrap not respecting commands spread across multiple linesFor those of us still using Stata 15, putwrap facilitates the commingling of putdocx commands and co…
New Stata User: Need help with effect size question and one other using svy tabulateI have a survey table with two variables. After output it shows 2x3 table and measures off associati…
Subscribe to:
Post Comments (Atom)
0 Response to Plot survival curve of the interaction in Stratified Cox Model
Post a Comment