
glmnet.cr
to restructure an ordinal dataset to represent the K-1 conditionally independent likelihoods needed for fitting a backrward continuation ratio modelcr.backward(x, y)
cr.forward
, glmnet.cr
data(diabetes)
x <- diabetes[,2:dim(diabetes)[2]]
y <- diabetes$y
fit <- glmnet.cr(x, y, method = "backward")
Run the code above in your browser using DataLab