R/dffits.R

Defines functions dffits.gsm

Documented in dffits.gsm

dffits.ss <- dffits.sm <- dffits.gsm <-
  function(model, infl = smooth.influence(model), 
           res = weighted.residuals(model), ...){
    res <- res * sqrt(infl$hat)/(infl$sigma * (1 - infl$hat))
    res[is.infinite(res)] <- NaN
    res
  }

Try the npreg package in your browser

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

npreg documentation built on March 7, 2026, 1:07 a.m.