ordinalgmifs {ordinalgmifs} | R Documentation |
Ordinal Generalized Monotone Incremental Forward Stagewise Regression
Description
This function can fit a cumulative link, adjacent category, forward and backward continuation ratio, and stereotype ordinal response model when the number of parameters exceeds the sample size, using the the generalized monotone incremental forward stagewise method.
Usage
ordinalgmifs(formula, data, x = NULL, subset, epsilon = 0.001, tol = 1e-05,
scale = TRUE, probability.model = "Cumulative", link = "logit",
verbose=FALSE, assumption=NULL, ...)
Arguments
formula |
an object of class " |
data |
an optional data frame, list or environment (or object coercible by |
x |
an optional matrix of predictors that are to be penalized in the model fitting process. |
subset |
an optional vector specifying a subset of observations to be used in the fitting process. |
epsilon |
small incremental amount used to update a coefficient at a given step. |
tol |
the iterative process stops when the difference between successive log-likelihoods is less than this specified level of tolerance. |
scale |
logical, if TRUE the penalized predictors are centered and scaled. |
probability.model |
the type of ordinal response model to be fit. Can be |
link |
the link function used. Allowable links for |
verbose |
logical, if TRUE the step number is printed to the console (default is FALSE). |
assumption |
integer, only use with |
... |
additional arguments |
Details
A model specified as response~terms, x=penalized.terms
where response
is the ordinal response vector and terms
is the series of variables in the model that are not to be penalized and x
is a matrix of variables that are to be penalized. For example, terms
may include the variables age and gender while x
includes hundreds to thousands of features from a high-throughput genomic experiment. In the event that no baseline demographic/clinical characteristics/subject level variables are available or needed in terms
(all variables are to be penalized) then the model is specified as response~1, x=penalized.terms
.
Value
AIC |
a vector of AIC values for each step (if |
BIC |
a vector of BIC values for each step (if |
alpha |
the ordinal threshold estimates for the fitted model. |
theta |
the coefficient estimates for the unpenalized variables (if |
beta |
the coefficient estimates for the penalized variables (if |
phi |
the scaling coefficient estimates (if a |
logLik |
a vector of log-likelihood values for each step(if |
link |
the link function used in the model fit. |
model.select |
the step at which the minimum AIC was observed (if |
probability.model |
the model fit. |
scale |
logical indicating whether penalized variables were centered and scaled. |
w |
the unpenalized variables in the model (if any). |
x |
the penalized variables in the model (if any). |
y |
the ordinal response. |
Author(s)
Kellie J. Archer, Jiayi Hou, Qing Zhou, Kyle Ferber, John G. Layne, Amanda Gentry
References
Hastie T., Taylor J., Tibshirani R., and Walther G. (2007) Forward stagewise regression and the monotone lasso. Electronic Journal of Statistics, 1, 1-29.
See Also
See Also coef.ordinalgmifs
, summary.ordinalgmifs
, plot.ordinalgmifs
, predict.ordinalgmifs
Examples
data(hccframe)
# To minimize processing time, MPO_E302_R is coerced into the model and only a subset of
# two CpG sites (DDIT3_P1313_R and HDAC9_P137_R) are included as penalized covariates
# in this demonstration, and epsilon is set to 0.01
hcc.fit <- ordinalgmifs(group ~ MPO_E302_R, x = c("DDIT3_P1313_R", "HDAC9_P137_R"),
data = hccframe, epsilon = 0.01)
coef(hcc.fit)
summary(hcc.fit)
phat <- predict(hcc.fit)
head(phat$predicted)
table(phat$class, hccframe$group)