Description Usage Arguments Value See Also Examples
View source: R/grpregPredict.R
A dataframe is partitioned randomly into training and test samples. The function grpreg::grpreg() is used to fit the training data using Lasso, SCAD and MCP penalty functions. The BIC criterion is used to selecting the penalty parameter lambda.
1 | grpregPredict(Xy, trainFrac = 2/3, XyList=NULL)
|
Xy |
a dataframe that may contain factor variables |
trainFrac |
the fraction of data to be used for training |
XyList |
instead of supplying Xy you can provide XyList. |
vector of RMSEs
glmnetPredict
,
glmnetGridTable
,
trainTestPartition
,
grpreg
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.