Description Usage Arguments Author(s) Examples
View source: R/pure_soda_par.R
This function takes a SODA result variable as input, and calculates the cross-validation error for each step of the SODA procedure.
1 | soda_trace_CV(xx, yy, res_SODA)
|
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. |
Yang Li, Jun S. Liu
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.