demo/data.recur.pre.bart.R

library(BART)

times <- matrix(c(3,  8,  9,
                  4, 12, 12),
                nrow=2, ncol=3, byrow=TRUE)

tstop <- matrix(c(7, 8, 0,
                  7, 0, 0),
                nrow=2, ncol=3, byrow=TRUE)

delta <- matrix(c(1, 1, 0,
                  1, 0, 0),
                nrow=2, ncol=3, byrow=TRUE)

data. <- recur.pre.bart(times=times, delta=delta,
                        tstop=tstop)
print(data.)

data. <- recur.pre.bart(times=times, delta=delta,
                        tstop=tstop, last.value=FALSE)
print(data.$tx.test)

Try the BART package in your browser

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

BART documentation built on June 22, 2024, 11:33 a.m.