Description Usage Arguments Details Author(s) References See Also Examples
This function computes cross-validated deviance or prediction errors
for step.plr.
The parameters that can be cross-validated are
lambda
and cp
.
1 2 3 4 |
x |
matrix of features |
y |
binary response |
weights |
optional vector of weights for observations |
nfold |
number of folds to be used in cross-validation. Default is
|
folds |
list of cross-validation folds. Its length must be |
lambda |
vector of the candidate values for |
cp |
vector of the candidate values for |
cv.type |
If |
trace |
If |
... |
other options for |
This function computes cross-validated deviance or prediction errors
for step.plr.
The parameters that can be cross-validated are
lambda
and cp
. If both are input as vectors (of length
greater than 1), then a two-dimensional cross-validation is done. If
either one is input as a single value, then the cross-validation is
done only on the parameter with multiple inputs.
Mee Young Park and Trevor Hastie
Mee Young Park and Trevor Hastie (2008) Penalized Logistic Regression for Detecting Gene Interactions
step.plr
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.