Displaying 1 result from an estimated 1 matches for "iterlist".
Did you mean:
itemlist
2011 Sep 20
0
Using method = "aic" with pspline & survreg (survival library)
...<- survreg(Surv(time, status) ~ ph.ecog + pspline(age,3), cancer,
dist="weibull")
# weibull model with aic - gives an error
fit1 <- survreg(Surv(time, status) ~ ph.ecog +
pspline(age,method="aic"),dist="weibull", cancer)
Error in (cfun[[1]])(parmlist[[1]], iter, iterlist[[1]], n.eff, pdf[1], :
object 'loglik' not found
I also get a similar error about "object 'loglik' not found" if I try to use
method="aic" in the specification of a frailty term in a survreg model.
Thanks for your help - apologies in advance if I'm missi...