Learn R Programming

CoxRidge (version 0.9.2)

print.cox.dynamic.ridge: Print a cox.dynamic.ridge object.

Description

Information describing the fitted cox.dynamic.ridge object.

Usage

"print"(x,...)

Arguments

x
a cox.dynamic.ridge object.
...
optional arguments passed to print.default; see the documentation on that method function.

See Also

Dynamic.Ridge.

Examples

Run this code
data(GBSG)
attach(GBSG)
X <- cbind(age,grade)
R <- cbind(tumsize,posnodal,prm,esm)
X <- apply(X,2,function(x){(x-mean(x))/sqrt(var(x))}) #standardize covariates
R <- apply(R,2,function(x){(x-mean(x))/sqrt(var(x))}) #standardize covariates
Ft <- cbind(rep(1,nrow(X)),bs(rfst))

# a model with all covariates as time varying, simple penalty
fit.dr <- Dynamic.Ridge(rfst,cens,cbind(X,R),Ft=Ft,lambda=10,fun="simple",lambdaFixed=TRUE)
fit.dr
          

Run the code above in your browser using DataLab