Skip to content
Prev 259276 / 398502 Next

Syntax for iter.max in rms

The option `iter.max' should be an element of the Control list.  If you read the help file carefully, you would have noticed this.  So, try this:

f <- bj(Surv(ftime, stroke) ~ rcs(age,5) + hospital, link='identity', control=list(iter.max=200), x=TRUE, y=TRUE)

Identity link is challenging to fit computationally.  Try setting `trave=TRUE' to see the convergence of the parameters.

f <- bj(Surv(ftime, stroke) ~ rcs(age,5) + hospital, link='identity', control=list(iter.max=200, trace=TRUE), x=TRUE, y=TRUE)

Ravi.