Learn R Programming

Coxnet (version 0.2)

print.Coxnet: Print a Coxnet Object

Description

Print a summary of results along the path of lambda.

Usage

"print"(x, digits = 4, ...)

Arguments

x
fitted Coxnet object
digits
significant digits in printout
...
additional print arguments

Value

The matrix above is silently returned

Details

The performed model is printed, followed by fit and fit0 (if any) from a fitted Coxnet object, or fit and cvh (if any) from a fitted loCoxnet object

See Also

Coxnet, loCoxnet, coxsplit

Examples

Run this code
set.seed(1213)
N=1000;p=30;p1=5
x=matrix(rnorm(N*p),N,p)
beta=rnorm(p1)
xb=x[,1:p1]
ty=rexp(N,exp(xb))
tcens=rbinom(n=N,prob=.3,size=1)  # censoring indicator
y=cbind(time=ty,status=1-tcens)

fiti=Coxnet(x,y,penalty="Lasso",nlambda=10,nfolds=10) # Lasso
print(fiti)

Run the code above in your browser using DataLab