Let a = 1 - level
. All intervals are computed
using the formula prediction +/- m * epesd
, where
m
is a multiplier and epesd
is the
estimated standard deviation of the prediction error of
the estimate
.
method = "none"
(no correction) produces the
standard t-based confidence intervals with multiplier
stats::qt(1 - a/2, df = object$df.residual)
.
method = "bonferroni"
produces Bonferroni-adjusted
intervals that use the multiplier m = stats::qt(1 -
a/(2 * k), df = object$df.residual)
, where k
is
the number of intervals being produced.
The Working-Hotelling and Scheffe adjustments are distinct;
the Working-Hotelling typically is related to a multiple comparisons adjustment
for confidence intervals of the response mean while the Scheffe adjustment is typically
related to a multiple comparisons adjustment for prediction intervals
for a new response. However, references often uses these names
interchangeably, so we use them equivalently in this function.
method = "wh"
(Working-Hotelling) or
method = "scheffe"
and interval =
"confidence"
produces Working-Hotelling-adjusted intervals that
use the multiplier m = sqrt(p * stats::qf(level,
df1 = p, df2 = object$df.residual))
, where p
is
the number of estimated coefficients in the model.
method = "wh"
(Working-Hotelling) or
method = "scheffe"
and interval =
"prediction"
produces Scheffe-adjusted intervals that
use the multiplier m = sqrt(k * stats::qf(level,
df1 = k, df2 = object$df.residual))
, where k
is
the number of intervals being produced.