Learn R Programming

glmnetcr (version 1.0.2)

glmnetcr-package: Penalized Constrained Continuation Ratio Models for Ordinal Response Prediction using glmnet

Description

This package provides a function glmnet.cr for fitting penalized constrained continuation ratio models for predicting an ordinal response and associated methods for plotting, printing, extracting predicted classes and probabilities, and extracting estimated coefficients for selected models in the regularization path.

Arguments

Details

ll{ Package: glmnetcr Type: Package Version: 1.0 Date: 2011-03-02 License: GPL2.0 LazyLoad: yes } This package contains functions for fitting penalized constrained continuation ratio models and extracting estimated coefficients, predicted class, and fitted probabilities. The model and methods can be used when the response to be predicted is ordinal, and is particularly relevant when there are more covariates than observations.

References

Kellie J. Archer and Andre A.A. Williams (2011) Technical Report.

See Also

See also glmnet ~~

Examples

Run this code
data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
glmnet.fit <- glmnet.cr(x, y)
AIC <- select.glmnet.cr(glmnet.fit, which="AIC")
fitted(glmnet.fit, s=AIC)

Run the code above in your browser using DataLab