Learn R Programming

survivalSL (version 0.97.1)

print.sltime: S3 Method for Printing an 'sltime' Object

Description

Print the contribution of learners included in the super learner.

Usage

# S3 method for sltime
print(x,  digits=7, ...)

Value

No return value for this S3 method.

Arguments

x

An object returned by the function survivalSL.

digits

An optional integer for the number of digits to print when printing numeric values.

...

For future methods.

Examples

Run this code
data(dataDIVAT2)

sl1 <- survivalSL(method=c("LIB_COXridge", "LIB_AFTggamma"),  metric="ci",
  data=dataDIVAT2[1:150,],  times="times", failures="failures", pro.time = 12,
  cov.quanti=c("age"),  cov.quali=c("hla", "retransplant", "ecd"), cv=3)

print(sl1, digits=4)

Run the code above in your browser using DataLab