print.eval.cv: Print an object of class 'eval.cv'

Description Usage Arguments Details Value Author(s) Examples

View source: R/pact.R

Description

print method for objects of class 'eval.cv'

Usage

1
2
## S3 method for class 'eval.cv'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

The object returned from 'eval.pact.cv'

digits

significant digits in the print

...

Additional print arguments

Details

The call that produced the object is printed, followed by the evaluation statistics. The p-values are printed if permutation testing was asked for.

Value

The statistics comparing treatments E and C is printed. The printed statistics differs according to whether method was 'discrete' or 'continuous'. p-values are printed if perm.test=TRUE

Author(s)

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

Examples

1
2
3
4
5
6
7
8
9
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")
cv <- pact.cv(p, nfold=5)
eval <- eval.pact.cv(cv, method="discrete", g=log(0.80))
eval

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