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

Description Usage Arguments Details Value Author(s) Examples

View source: R/pact.R

Description

print method for objects of class 'pact'

Usage

1
2
## S3 method for class 'pact'
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

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

Value

The classification function is printed

Author(s)

Jyothi Subramanian and Richard Simon
Maintainer: Jyothi Subramanian <subramanianj01@gmail.com>

Examples

1
2
3
4
5
6
7
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)

pact documentation built on May 2, 2019, 1:48 a.m.