Is there a way to output the results of a cox ph with frailty term using stargazer? I get the following error when I try it:
stargazer(fit1) Error in .summary.object$coef[, "z"] : subscript out of bounds
Without the frailty term it is possible. Could someone help me out?
Edit: If my question is unclear, I will create an example. However, I can't share my data.
Edit2: Example:
library(survival)
library(stargazer)
data(rats)
cox_ph=coxph(Surv(time/52,status)~factor(rx), data=rats)
stargazer(cox_ph)
cox_ph_with_frailty=coxph(Surv(time/52,status)~factor(rx)+frailty(litter), data=rats)
stargazer(cox_ph_with_frailty)
str(cox_ph_with_frailty)
stargazer(cox_ph) produces nice Latex output, stargazer(cox_ph_with_frailty) produces the above error.