soda_trace_CV: Calculate a trace of cross-validation error rate for SODA...

Description Usage Arguments Author(s) Examples

View source: R/pure_soda_par.R

Description

This function takes a SODA result variable as input, and calculates the cross-validation error for each step of the SODA procedure.

Usage

1
soda_trace_CV(xx, yy, res_SODA)

Arguments

xx

The design matrix, of dimensions n * p, without an intercept. Each row is an observation vector.

yy

The response vector of dimension n * 1.

res_SODA

SODA result varaible. See example below.

Author(s)

Yang Li, Jun S. Liu

Examples

1
2
3
4
5
# Michigan lung cancer dataset (uncomment the code to run)
#data(mich_lung);
#res_SODA = soda(mich_lung_xx, mich_lung_yy, gam=0.5);
#cv_SODA  = soda_trace_CV(mich_lung_xx, mich_lung_yy, res_SODA)
#cv_SODA

szcf-weiya/sodaParallel documentation built on Dec. 19, 2020, 5:46 p.m.