I run the following code:
stset Time, failure(death==1)
stcox i.region i.yearofdiagnosis i.agegrp i.ethnicity
stphtest, detail
estat phtest, plot(i.region)
However, when running the last line, STATA returns:
estat phtest, plot(i.region_1)
1.region 2.region 3.region 4.region not found in model
r ( 198) ;
So I think to myself, let's add each separate sub-group individually, which gives the following result:
estat phtest, plot(1.region 2.region)
1.region 2.region not found in model
r ( 198) ;
However, when I only plot one sub-group this works.
estat phtest, plot(2.region)
How can I plot all all i.region sub-groups into one graph using STATA?
stset Time, failure(death==1)
stcox i.region i.yearofdiagnosis i.agegrp i.ethnicity
stphtest, detail
estat phtest, plot(i.region)
However, when running the last line, STATA returns:
estat phtest, plot(i.region_1)
1.region 2.region 3.region 4.region not found in model
r ( 198) ;
So I think to myself, let's add each separate sub-group individually, which gives the following result:
estat phtest, plot(1.region 2.region)
1.region 2.region not found in model
r ( 198) ;
However, when I only plot one sub-group this works.
estat phtest, plot(2.region)
How can I plot all all i.region sub-groups into one graph using STATA?

Comment