Learn R Programming

VGAM (version 1.1-13)

hdeffsev: Hauck-Donner Effect: Severity Measures

Description

Computes the severity of the Hauck-Donner effect for each regression coefficient of a fitted VGLM.

Usage

hdeffsev(object, hdiff = 0.005, eta0 = 0,
    subset = NULL, maxderiv = 6,
    severity.table = c("None", "Faint", "Weak",
             "Moderate", "Strong", "ExtremeI",
             "ExtremeII", "ExtremeIII",
             "ExtremeIV+", "Undetermined"),
    lookup = c(0, 0.5, 0.7, 1, 1.3, 2:5),
    tx.some = TRUE, wsdmvec = NULL, ...)

Value

By default this function (hdeffsev) returns a labelled vector with names names(coef(object)) and elements selected from

severity.table.

Arguments

object

A fitted vglm object, although not all VGAM family functions will work, e.g., GAITD regression. Alternatively, use wsdm.

eta0, subset, hdiff

Fed into wsdm.

maxderiv, ...

Fed into wsdm.

severity.table

Character vector of descriptors, plus the last value for initialization. Usually users should not assign anything to this argument. Used in conjunction with lookup.

lookup

Numeric, thresholds used for assigning severity.table values based on WSDM statistics. This look-up table should be sorted and the first element equal to 0. Usually users should not assign anything to this argument, else be careful when using it.

tx.some

Logical, transform WSDM before comparisons? Applies to certain links only (and if object was inputted), currently loglink and cauchitlink. This is because it is possible to slightly improve the calibration between WSDM statistics and the look-up table. In particular, a square root transformation shrinks certain values towards unity.

wsdmvec

The WSDM statistics can be inputted directly into the function here.

Author

Thomas W. Yee.

Warning

For VGAM version 1.1-13, hdeffsev() was renamed to hdeffsev0(), hdeffsev2() to hdeffsev2() [no change], and hdeffsev() is new and based on wsdm(vglmfit).

Details

This function is intended to replace all previous code for measuring HDE severity. In particular, hdeffsev0 and hdeffsev2 are old and are not recommended. Details behind this function spring from wsdm.

References

Yee, T. W. (2022). On the Hauck-Donner effect in Wald tests: Detection, tipping points and parameter space characterization, Journal of the American Statistical Association, 117, 1763--1774. tools:::Rd_expr_doi("10.1080/01621459.2021.1886936").

See Also

seglines, hdeff, hdeffsev0, wsdm which is superior.

Examples

Run this code
example(genpoisson0)
summary(gfit0, wsdm = TRUE)
hdeffsev(gfit0)

Run the code above in your browser using DataLab