Description Usage Arguments Value Author(s) See Also Examples
Recurrent event data contained in (t_1,δ_1, ..., t_k,δ_k, x) must be translated to data
suitable for the BART model; see recur.bart
for more details.
1 | recur.pre.bart( times, delta, x.train=NULL, probs=c(0.15, 0.15), baseline=FALSE )
|
times |
Matrix of time to event or right-censoring. |
delta |
Matrix of event indicators: 1 is an event while 0 is censored. |
x.train |
Explanatory variables for training (in sample) data. |
probs |
|
baseline |
workaround bug |
recur.pre.bart
returns a list.
Besides the items listed below, the list has
a times
component giving the unique times and K
which is the number of
unique times.
y.train |
A vector of binary responses. |
X.train |
A matrix with the rows of the training data. |
X.test |
Generated from |
X.base |
Generated from |
sojourn |
Generated from |
pattern |
Generated from |
Rodney Sparapani: rsparapa@mcw.edu
1 2 3 4 5 6 | ## Not run:
require(timebart)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.