Computes the severity of the Hauck-Donner effect for each regression coefficient of a fitted VGLM.
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, ...)
By default this function
(hdeffsev
)
returns a labelled vector with
names names(coef(object))
and
elements selected from
severity.table
.
A fitted vglm
object,
although not all VGAM family functions
will work, e.g.,
GAITD regression.
Alternatively, use wsdm
.
Fed into wsdm
.
Fed into wsdm
.
Character vector of descriptors, plus
the last value for initialization.
Usually users should not assign anything to
this argument.
Used in conjunction with 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.
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.
The WSDM statistics can be inputted directly into the function here.
Thomas W. Yee.
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)
.
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
.
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").
seglines
,
hdeff
,
hdeffsev0
,
wsdm
which is superior.
example(genpoisson0)
summary(gfit0, wsdm = TRUE)
hdeffsev(gfit0)
Run the code above in your browser using DataLab