ppc.cv {ppc}R Documentation

Cross-validation for PPC analysis

Description

This function does K-fold cross-validation for PPC analysis

Usage

ppc.cv(ppc.fit, data, user.parms)

Arguments

ppc.fit Result of call to ppc.predict
data List containing mass spec data
user.parms List of user defiend parameters

Value

err CV error rate for each threshold value
se se of CV error rate
confusion Cnfusion matrix for each threshold value
threshold Threshold vlaues used
yhat Predicted values from CV
prob Cv probabilities
y Training set outcome values
folds Indices defining CV folds
numsites Number of m/z sites surviving shrinkage at each threshold value

Author(s)

Balasubramanian Narasimhan and Rob Tibshirani

Examples

## for a complete worked example of this function in a PPC analysis  see
##  http://www-stat.stanford.edu/~tibs/PPC/Rdist/Rscript.rawdata

[Package ppc version 1.01 Index]