Fits a continuation ratio logit/probit/cloglog/cauchit/... regression model to an ordered (preferably) factor response.
cratio(link = "logitlink", parallel = FALSE, reverse = FALSE,
zero = NULL, thresholds = c("unconstrained", "equidistant"),
Treverse = reverse, Tref = if (Treverse) "M" else 1,
whitespace = FALSE)
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions
such as vglm
,
rrvglm
and vgam
.
Link function applied to
the Links
for more choices.
A logical, or formula specifying which terms have equal/unequal coefficients.
Logical.
By default, the continuation ratios used are
reverse
is TRUE
, then
An integer-valued vector specifying which
linear/additive predictors are modelled as intercepts only.
The values must be from the set {1,2,...,CommonVGAMffArguments
for more information.
See cumulative
for information.
These arguments apply to ordinal
categorical regression models.
See CommonVGAMffArguments
for information.
Thomas W. Yee
No check is made to verify that the response is ordinal if the
response is a matrix;
see ordered
.
Boersch-Supan (2021) looks at sparse data and
the numerical problems that result;
see sratio
.
In this help file the response
There are a number of definitions for the
continuation ratio
in the literature. To make life easier, in the VGAM
package, we use continuation ratios and stopping
ratios
(see sratio
).
Stopping ratios deal with quantities such as
logitlink(P[Y=j|Y>=j])
.
See sratio
.
sratio
,
acat
,
cumulative
,
multinomial
,
margeff
,
pneumo
,
budworm
,
logitlink
,
probitlink
,
clogloglink
,
cauchitlink
.
pneumo <- transform(pneumo, let = log(exposure.time))
(fit <- vglm(cbind(normal, mild, severe) ~ let,
cratio(parallel = TRUE), data = pneumo))
coef(fit, matrix = TRUE)
constraints(fit)
predict(fit)
predict(fit, untransform = TRUE)
margeff(fit)
Run the code above in your browser using DataLab