cr.forward {glmnetcr} | R Documentation |
Forward Continuation Ratio Restructure Function
Description
This is an internal function used by glmnetcr
to restructure an ordinal dataset to represent the K-1 conditionally independent likelihoods needed for fitting a forward continuation ratio model
Usage
cr.forward(x, y, weights)
Arguments
x |
covariates to be included in the model |
y |
ordinal outcome |
weights |
observation weights. Can be total counts if responses are proportion matrices. Default is 1 for each observation |
Value
object |
Yields an object where the first column y is the ordinal outcome that has been dichotomously coded and the expanded covariate matrix for the K-1 conditionally independent likelihoods |
Author(s)
Kellie J. Archer
See Also
See Also as cr.backward
, glmnetcr
Examples
data(diabetes)
x <- diabetes[,2:dim(diabetes)[2]]
y <- diabetes$y
fit <- glmnetcr(x, y, method = "forward")
[Package glmnetcr version 1.0.7 Index]