Learn R Programming

LTRCforests (version 0.5.0)

print: Print Summary Output of a ltrccf object or a ltrcrsf object

Description

Print summary output after a LTRCCF or a LTRCRSF model is built. This is the default print method for objects in the class of ltrccf or ltrcrsf.

Usage

print(x)

Arguments

x

an object of class ltrccf or ltrcrsf.

See Also

ltrccf, ltrcrsf

Examples

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

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

Run the code above in your browser using DataLab