Learn R Programming

pact (version 0.5.0)

print.pact: Print an object of class 'pact'

Description

print method for objects of class 'pact'

Usage

"print"(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x
The object returned from 'pact.fit'
digits
significant digits in the print
...
Additional print arguments

Value

The classification function is printed

Details

The call that produced the object is printed, followed by the classification function from pact.fit for calculating the predictive scores for new subjects

Examples

Run this code
data(prostateCancer)
Y <- prostateCancer[,3:4]
Xf <- prostateCancer[,7:8]
Xv <- prostateCancer[,c(5:6,9)]
Treatment <- as.factor(prostateCancer[,2])
p <- pact.fit(Y=Y, Xf=Xf, Xv=Xv, Treatment=Treatment, family="cox", varSelect="lasso")
print(p)

Run the code above in your browser using DataLab