Learn R Programming

LTRCforests (version 0.5.5)

print: Print Summary Output of a ltrccif object or a ltrcrrf object

Description

Print summary output after a LTRCCIF or a LTRCRRF model is built. This is the default print method for objects in the class of ltrccif or ltrcrrf.

Usage

print(x)

Arguments

x

an object of class ltrccif or ltrcrrf.

See Also

ltrccif, ltrcrrf

Examples

Run this code
# NOT RUN {
library(survival)
Formula = Surv(Start, Stop, Event) ~ age + alk.phos + ast + chol + edema
# Built a LTRCCIF forest on the time-varying data by specifying id, with mtry specified:
LTRCCIFobj = ltrccif(formula = Formula, data = pbcsample, id = ID, mtry = 3, ntree = 50L)
print(LTRCCIFobj)

# Built a LTRCCIF forest on the time-invariant data, with resampling, with mtry specified:
LTRCCIFobj = ltrccif(formula = Formula, data = pbcsample, samptype = "swr",
                     mtry = 3, ntree = 50L)
print(LTRCCIFobj)
# }

Run the code above in your browser using DataLab