This is a function to deal with the vglm object in S4.
residualsAcat(
object,
type = c("surrogate", "sign", "general", "deviance"),
jitter = c("latent", "uniform"),
jitter.uniform.scale = c("probability", "response"),
nsim = 1L,
...
)An object of class vglm.
The type of residuals which should be returned. The alternatives are: "surrogate" (default), "sign", "general", and "deviance". Can be abbreviated.
surrogatesurrogate residuals (Liu and Zhang, 2017);
signsign-based residuals;
generalgeneralized residuals (Franses and Paap, 2001);
deviancedeviance residuals (-2*loglik).
A character string specifying which method to use to generate the
surrogate response values. Current options are "latent" and
"uniform". Default is "latent".
latentlatent approach;
uniformjittering uniform approach.
A character string specifying the scale on which to perform
the jittering whenever jitter = "uniform". Current options are
"response" and "probability". Default is "response".
An integer specifying the number of replicates to use.
Default is 1L meaning one simulation only of residuals.
Additional optional arguments.
A "resid" object with attributes. It contains a vector or a matrix (nsim>1) of residuals for the adjacent categories model.