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
Multicollinearity and VIFI am using the following code xtreg recycling loginc logpopden gcses alevels md11 md12 md13 md14 md1…
Understanding the coefficients when the first category is dropped for multicollinearity but they are NOT dummy variables.I am running the following fixed effects regression xtreg recycling loginc logpopden age1120 age213…
data manipulation!Dear All, I was asked this question (https://bbs.pinggu.org/forum.php?mod...=1#pid57861683). Suppose…
Robust standard errors hausman testHi all, Im encountering a problem when trying to run a hausman test with robust standard errors. Iv…
Drop variables based on observations Code: +----------------------------------------------------------+ | A B …
Subscribe to:
Post Comments (Atom)
0 Response to Relative survival and relative excess risk (RER) using imputed data
Post a Comment