Hi everyone,
Does anyone know how I can calculate relative survival (strs) and relative excess risk (RER) with imputed data (mi set) in Stata version 12.1? When I use the following command I get the error "strs requires that the data are stset with only one observation per individual":
mi stset fup, failure(vit==1) id(id)
strs using nedmort, br(0(1)10) mergeby(_year sex _age) by(agecat graad hr) diagage(age) diagyear(incj) attage(_age) attyear(_year) survprob(prob) save(replace)
use grouped, replace
xi: mi estimate, hr: glm d i.end i.agecat, family (pois) link (rs d_star) lnoffset (y) eform
When I try the next command (mi before strs) I get the error "unrecognized subcommand: mi strs"
mi stset fup, failure(vit==1) id(id)
mi strs using nedmort, br(0(1)10) mergeby(_year sex _age) by(agecat graad hr) diagage(age) diagyear(incj) attage(_age) attyear(_year) survprob(prob) save(replace)
use grouped, replace
xi: mi estimate, hr: glm d i.end i.agecat, family (pois) link (rs d_star) lnoffset (y) eform
Thanks in advance,
Anna
Related Posts with Relative survival and relative excess risk (RER) using imputed data
sorting and creation of variablesHi everyone, I have two questions for you. I have a panel in which I have date, ID, company and out…
Turning numeric variable into stata time variableI have a dataset broken into date and time of the day. I want to break this time variable into hour …
JACCARD similarity measureHi I am working on similarity measure on the different assets classification. I have close to 12 ass…
Panel data which is non-missing for some variables and missing on Saturdays/Sundays/holidays for other variablesGood day, I have a general question regarding best practices for panel data which is non-missing fo…
Copy variable values into a data structure?Hello Xperts, Just wondering if there is any way in STATA to capture all the values (ignoring missi…
Subscribe to:
Post Comments (Atom)
0 Response to Relative survival and relative excess risk (RER) using imputed data
Post a Comment