Learn R Programming

pact (version 0.5.0)

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

Description

print method for objects of class 'eval.cv'

Usage

"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

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

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.

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")
cv <- pact.cv(p, nfold=5)
eval <- eval.pact.cv(cv, method="discrete", g=log(0.80))
eval

Run the code above in your browser using DataLab