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
Descriptive statistics for panel dataHi Statalist, I'm struggling to generate the descriptive statistics for my dataset. Here is the exa…
Appropriate model to usehello, I have a question on the most appropriate model to use. I have the data set below, I am tryin…
Interpreting outputs from "raschjmle" commandHi! I am doing my research on Rasch analysis for measuring knowledge. I am using Stata-14 to constru…
Counting number of variables across groupsHi, I have three variables KeyEventDates KeyEventHistory KeyEventDetails that I am splitting into s…
Pause in results windowI use Stata/IC 14.2 for Mac (64-bit Intel). I'm looking for a solution where Stata can execute comma…
Subscribe to:
Post Comments (Atom)
0 Response to Relative survival and relative excess risk (RER) using imputed data
Post a Comment