R/calc_resid.R

Defines functions calc_resid

calc_resid <-
function(Y, fitted_values){
  # Calculate raw residuals.
  stopifnot(is.numeric(Y), is.numeric(fitted_values),
            identical(length(Y), length(fitted_values)))
  return(as.vector(Y - fitted_values))
}

Try the distfreereg package in your browser

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

distfreereg documentation built on April 4, 2025, 12:30 a.m.