generate_residuals_acat
generate_residuals_acat(y, X, alpha, beta, nsim = 1)
A vector inputs the response variable.
A data.frame inputs the covariates.
A vector provides the estimated intercepts of adjacent categories model. If the response has k levels, there should be k+1 numbers in this alpha argument with the k-1 estimated intercepts. The lower bound and upper bound are "-Inf" and "Inf".
A vector provides the estimated coefficients.
A number to specify the replication of residuals.
A vector or a matrix (nsim>1) of residuals for the adjacent categories model.