Hi Listers,
Following relative survival analysis, I am running a cure model on data looking at survival across 2 treatment groups as we spot a plateau of the curves over time. I adjust the model for age group as age is also a predictor for relative survival.
I am using stpm2 in Stata 15. The model seems to be running OK but when I estimate median survival across the 2 groups by age, I am not able to obtain an estimate for the older group in teh control, which is the larger group of the 2.
I used the following code:
stpm2 group agec2 agec3 agec4 agec5, ///
df(6) scale(hazard) bhazard(rate) ///
nolog tvc(agec2 agec3 agec4 agec5) dftvc(3) cure
predict survunc, centile(50) uncured ci
bysort group agecat: g first = _n==1
list group agecat survunc if first==1 , noobs
This is the output
group agecat survunc
0 50-64 .86363831
0 65-69 .80947781
0 70-74 .7776575
0 75-79 .72047229
0 80-84 .
1 50-64 1.1751034
1 65-69 1.1392233
1 70-74 1.1170875
1 75-79 1.0751083
1 80-84 .99885943
There does not seem to be empty/missing cells and I have a rather large dataset (N = 15600). Using a greater centile (60) I am able to obtain an estimate but this does not resolve my issue. Obviously, this does not resolve my issue but I thought it is interesting...
I am just wondering what could be going wrong with my set up. Any suggestion?
Thanks,
Laura
Following relative survival analysis, I am running a cure model on data looking at survival across 2 treatment groups as we spot a plateau of the curves over time. I adjust the model for age group as age is also a predictor for relative survival.
I am using stpm2 in Stata 15. The model seems to be running OK but when I estimate median survival across the 2 groups by age, I am not able to obtain an estimate for the older group in teh control, which is the larger group of the 2.
I used the following code:
stpm2 group agec2 agec3 agec4 agec5, ///
df(6) scale(hazard) bhazard(rate) ///
nolog tvc(agec2 agec3 agec4 agec5) dftvc(3) cure
predict survunc, centile(50) uncured ci
bysort group agecat: g first = _n==1
list group agecat survunc if first==1 , noobs
This is the output
group agecat survunc
0 50-64 .86363831
0 65-69 .80947781
0 70-74 .7776575
0 75-79 .72047229
0 80-84 .
1 50-64 1.1751034
1 65-69 1.1392233
1 70-74 1.1170875
1 75-79 1.0751083
1 80-84 .99885943
There does not seem to be empty/missing cells and I have a rather large dataset (N = 15600). Using a greater centile (60) I am able to obtain an estimate but this does not resolve my issue. Obviously, this does not resolve my issue but I thought it is interesting...
I am just wondering what could be going wrong with my set up. Any suggestion?
Thanks,
Laura
Comment