Open pfmeredith opened 1 year ago
The error message is clear: Are there any missing values in any of the variables involved in your data? If so, remove all observations with any missing value. If not, please provide a reproducible example, including data.
That's fixed it, thanks. What confused me was that aftreg() ran and printed ok, and I expected regtable to simply reformat the dataframe of results. Does it re-run the regression?
Error message: Error in drop1.default(object, test = "Chisq") : number of rows in use has changed: remove missing values?
occurs when trying to use regtable after aftreg:
aftfit <- aftreg(Surv(tstart, futime, death) ~ NEWS + adm_meth.f + SHMI_risk_pc + cum_RN_under + cum_NA_under, dist = "weibull", shape = 1, id = id, param = "lifeAcc", data = adm_tdcs_stata) aftfit xx <- regtable(summary(aftfit), digits = 4)