I'm using stcompadj in Stata 19.5 to estimate the cumulative incidence of recurrence and death after prostate cancer treatment. The competing risks are coded using the variable 'event' which takes the value 1 for a recurrence, 2 for death and 0 if the patient is censored.
I am including several covariates in the models, fixed at specific values (age at diagnosis, nodes, and dummy variables representing categories of comorbidity, tstage, and gleason score).
When I run the code below, I get this error message: variable _m not found
Despite this error, the model estimates are correct and the two new cumulative incidence variables are created as expected. The error only seems to cause a problem when I include bootci as an option. No new variables are created for the higher/lower confidence intervals for the cumulative incidence estimates.
Can anyone explain what this error means and how I can fix it?
I am including several covariates in the models, fixed at specific values (age at diagnosis, nodes, and dummy variables representing categories of comorbidity, tstage, and gleason score).
When I run the code below, I get this error message: variable _m not found
Despite this error, the model estimates are correct and the two new cumulative incidence variables are created as expected. The error only seems to cause a problem when I include bootci as an option. No new variables are created for the higher/lower confidence intervals for the cumulative incidence estimates.
Can anyone explain what this error means and how I can fix it?
Code:
stset timeout, failure(event_==1) enter(start_recurrence_window) origin(curative_treatment_end) id(p_id) scale(365.25) stcompadj com_dum2=0 com_dum3=0 com_dum4=0 /// nodes_pc_impute=0 /// t3_dum1=0 t3_dum3=0 /// glea_dum1=0 glea_dum3=0 glea_dum4=0 /// age_at_first_pc_diag=65, /// compet(2) /// maineffect(com_dum2 com_dum3 com_dum4 /// nodes_pc_impute /// t3_dum1 t3_dum3 /// glea_dum1 glea_dum3 glea_dum4 /// age_at_first_pc_diag) /// competeffect(com_dum2 com_dum3 com_dum4 /// nodes_pc_impute /// t3_dum1 t3_dum3 /// glea_dum1 glea_dum3 glea_dum4 /// age_at_first_pc_diag) /// gen(pt_cox_recurrence pt_cox_death) showmod
