R/cov.ratio.R

Defines functions cov.ratio

Documented in cov.ratio

cov.ratio <-
  function(model, infl = smooth.influence(model, do.coef = FALSE),
           res = weighted.residuals(model)){
    clamod <- class(model)
    sigma <- ifelse(clamod == "gsm", sqrt(model$dispersion), model$sigma)
    (1 / (1 - infl$hat)) * (infl$sigma / sigma)^(2 * model$df)
  }

Try the npreg package in your browser

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

npreg documentation built on July 21, 2022, 1:06 a.m.