inst/tests/bj.r

## From Nicholas Stroustrup nicholas_stroustrup@hms.harvard.edu
require(rms)
require(survival)
deaths = Surv(c(1,2,3,4,5,6),c(1,0,1,1,0,1))
cg = as.factor(as.character(c(1,1,1,0,0,0)))
bj(deaths ~ cg)

Try the rms package in your browser

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

rms documentation built on Sept. 12, 2023, 9:07 a.m.