R/residuals.sglg.R

Defines functions residuals.sglg

Documented in residuals.sglg

#' Extract Model Residuals
#'
#' residuals.sglg extracts the deviance-type residuals for a model from an object of class 'sglg'.
#' @param object an object of the class sglg. This object is returned from the call to glg(), sglg(), survglg() or ssurvglg() function.
#' @param ... other arguments.
#' @export
residuals.sglg <- function(object, ...) {
    object$rdev
}

Try the sglg package in your browser

Any scripts or data that you put into this service are public.

sglg documentation built on Sept. 4, 2022, 9:05 a.m.