summary.cv_tfCox: Summarize 'cv_tfCox' object

Description Usage Arguments Author(s) See Also Examples

View source: R/Rfunctions.R

Description

This function summarizes cv_tfCox object and identifies the tuning parameter chosen by cross-validation.

Usage

1
2
## S3 method for class 'cv_tfCox'
summary(object, ...)

Arguments

object

an object of class "cv_tfCox"

...

additional arguments to be passed. These are ignored in this function.

Author(s)

Jiacheng Wu

See Also

cv_tfCox, plot.cv_tfCox

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#generate data
set.seed(1234)
dat = sim_dat(n=100, zerof=0, scenario=1)

#cross-validation to choose the tuning parameter lambda with fixed alpha=1
cv = cv_tfCox(dat, ord=0, alpha=1, n.fold=2)
#summarize the cross-validation
summary(cv)
#plot the cross-validation curve
plot(cv)

tfCox documentation built on Aug. 1, 2019, 5:07 p.m.