summary.tfCox: Summarize 'tfCox' object

Description Usage Arguments Details Author(s) See Also Examples

View source: R/Rfunctions.R

Description

This function summarizes tfCox object

Usage

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

Arguments

object

an object of class "tfCox"

...

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

Details

Summarize the fit by the number of knots and percent sparsity achieved. Percent sparsity is the percentage of features estimated to have no relationship with the outcome.

Author(s)

Jiacheng Wu

See Also

tfCox, plot.tfCox

Examples

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

#fit piecewise constant for alpha=1 and a range of lambda
fit = tfCox(dat, ord=0, alpha=1)

#summarize the fit by the number of knots and percent sparsity achieved.
#Percent sparsity is the percentage of features estimated to have
#no relationship with outcome
summary(fit)

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