Description Usage Arguments Details Value See Also Examples
View source: R/predict.cv.pcLasso.R
This function returns the predictions for a new data matrix from a
cross-validated pcLasso model by using the stored "glmfit" object and
the optimal value chosen for lambda.
1 2 3 |
object |
Fitted " |
xnew |
Matrix of new values for |
s |
Value of the penalty parameter |
... |
Potentially other arguments to be passed to and from methods; currently not in use. |
This function makes it easier to use the results of cross-validation to make
a prediction. Note that xnew should have the same number of columns as
the original feature space, regardless of whether the groups are overlapping
or not.
Predictions which the cross-validated model makes for xnew at
the optimal value of lambda. Note that the default is the "lambda.1se" for lambda,
to make this function consistent with cv.glmnet in the glmnet
package. The output is predictions of E(y|xnew): these are probabilities
for the binomial family.
cv.pcLasso and predict.pcLasso.
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.