Description Usage Arguments Value Author(s) See Also Examples
View source: R/predict.glmnetcr.R
Returns the AIC, BIC, predicted class, and the fitted probabilities for the K classes for all steps along the path.
1 2 |
object |
a |
newx |
a data matrix representing the predictor variables, if missing defaults to original data used in fitting the model |
... |
additional optional arguments |
AIC |
a numeric vector representing the AIC for each step |
BIC |
a numeric vector representing the BIC for each step |
class |
a matrix with n rows indicating the predicted class for each observation in newx for each stepp |
probs |
an array where for each step, a matrix of n rows and K columns indicates the fitted class probabilities for each observation and class |
Kellie J. Archer, archer.43@osu.edu
See Also as glmnetcr
, fitted.glmnetcr
1 2 3 4 5 6 |
Loading required package: glmnet
Loading required package: Matrix
Loading required package: foreach
Loaded glmnet 2.0-12
Warning message:
from glmnet Fortran code (error code -26); Convergence for 26th lambda value not reached after maxit=100 iterations; solutions for larger lambdas returned
[1] "BIC" "AIC" "class" "probs"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.