robglm: Robust Generalized Linear Models

Description Usage Arguments Value

View source: R/robustGlms.R

Description

Robust Generalized Linear Models

Usage

1
2
3
4
5
6
7
8
robglm(
  formula,
  data,
  family = "binomial",
  method = c("mallows", "none", "schweppe", "welsch", "carroll"),
  k = 1.345,
  cw = 8
)

Arguments

formula

A model formula

data

A data frame

family

One of "binomial", "poisson", "Gamma", "gaussian".

method

The method to be used to calculate weights for the design matrix. One of the options below. The default is "mallows".

- "none" uses equal weights for all rows of the design matrix
- "mallows" uses the diagonal of the hat matrix to calculate leverage weights as sqrt(1-h)
- "carroll" uses the sqrt(mah.dist/ p) as a statistic to feed into the psi function ψ = u * ((1-(u/cw)^2)^3 * I(u) <= cw) to generate weights as ψ(u)/u.
- "schweppe" multiplies the mallows weights by psi-weights derived from robustly standardized deviance residuals from an initial fit, i.e., sqrt(1-h)*psi((r-median(r))/mad(r)). Schweppe's weights prevent high-leverage observations that are not associated with large residuals (good leverage points) from being downweighted. This results in increased efficiency.
- "welsch" is similar to Mallow's weights, but Welsch's weights are calculated as (1-h)/sqrt(h).

k

Tuning constant for Huber's psi. defaults to 1.345.

cw

Tuning constant for caroll weights. defaults to 8.

Value

a robglm object


abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.