inst/tests/rcspline.plot.r

library(Hmisc)
require(survival)
data(pbc)

with(pbc, 
     rcspline.plot(age, time, model="cox",event=status %in% 1:2, nk=5, show="xbeta",
              showknots=TRUE, plotcl=TRUE, lty=1)
)

Try the Hmisc package in your browser

Any scripts or data that you put into this service are public.

Hmisc documentation built on Sept. 12, 2023, 5:06 p.m.