Learn R Programming

hdnom (version 5.0)

print.hdcox.model: Print High-Dimensional Cox Model Objects

Description

Print information about high-dimensional Cox models.

Usage

# S3 method for hdcox.model
print(x, ...)

Arguments

x

Model object fitted by hdcox.*() functions.

...

Other parameters (not used).

Examples

Run this code
# NOT RUN {
library("survival")

# Load imputed SMART data
data("smart")
x = as.matrix(smart[, -c(1, 2)])
time = smart$TEVENT
event = smart$EVENT
y = Surv(time, event)

fit = hdcox.lasso(x, y, nfolds = 5, rule = "lambda.1se", seed = 11)
print(fit)
# }

Run the code above in your browser using DataLab