R/residuals.R

Defines functions residuals.iv_robust

#' @exportS3Method residuals iv_robust
residuals.iv_robust <- function(object, ...) {
  datawizard::to_numeric(insight::get_response(object, verbose = FALSE), dummy_factors = FALSE, preserve_levels = TRUE) - object$fitted.values
}

Try the performance package in your browser

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

performance documentation built on Oct. 19, 2024, 1:07 a.m.