Extracts, summarizes, and prints components of an object returned by
gls_mult(). Mean-model methods use normal Wald inference. The model
argument selects the mean or dispersion parameter block for coef() and
vcov().
The summary print method offers two layouts. The clean layout, used by
default and when a gls_mult() object is printed, follows the style of
stats::summary.lm(): it shows the mean and dispersion models, a table of
mean-coefficient Wald tests with columns term, estimate, model_se,
z, and p_value, the dispersion coefficients, and a quasi-F test that
all mean coefficients except the intercept are zero. The model_se column
holds model-based standard errors, not HC standard errors. When a null value
given to gls_mult() is nonzero, the table also shows the column
null_value, because z and p_value refer to these null values. The
layout affects printing only; the other components of the summary do not
depend on simple.
Usage
# S3 method for class 'gls_mult'
coef(object, model = c("mean", "dispersion"), ...)
# S3 method for class 'gls_mult'
vcov(object, model = c("mean", "dispersion"), ...)
# S3 method for class 'gls_mult'
confint(object, parm, level = object$confidence_level, ...)
# S3 method for class 'gls_mult'
tests(object, parm, alpha = object$alpha, ...)
# S3 method for class 'gls_mult'
nobs(object, ...)
# S3 method for class 'gls_mult'
fitted(object, ...)
# S3 method for class 'gls_mult'
residuals(object, ...)
# S3 method for class 'gls_mult'
logLik(object, ...)
# S3 method for class 'gls_mult'
print(x, ...)
# S3 method for class 'gls_mult'
summary(object, simple = TRUE, ...)
# S3 method for class 'summary_gls_mult'
print(x, ...)Arguments
- object, x
An object returned by
gls_mult(), or its summary.- model
Parameter block to extract:
"mean"or"dispersion".- ...
Unused. Passing arguments raises an error.
- parm
Optional mean-coefficient names or integer positions.
- level
Confidence level for mean-coefficient intervals.
- alpha
Significance level for mean-coefficient tests.
- simple
Logical.
TRUE(default) prints the clean report;FALSEprints the detailed report, which adds test decisions, confidence intervals, fitted conditional variances, and, for maximum likelihood fits, likelihood and convergence diagnostics.
Value
coef() returns a named numeric vector; vcov() returns a covariance
matrix; confint() and tests() return tibbles; fitted() returns the
GLS fitted values and residuals() the response minus these fitted values,
both as named numeric vectors; nobs() returns the sample size; and
logLik() returns a logLik object for maximum likelihood fits. Print
methods return their input invisibly.
summary() returns an object of class summary_gls_mult. Besides the model
metadata, the coefficient tables tests and variance_tests, and the
fitted conditional-variance and standard-deviation summaries in squared
response and response units, it contains:
simpleThe value of
simple, which selects the printed layout.num_obsNumber of observations.
quasi_fA one-row tibble with the quasi-F statistic (
statistic), the degrees of freedom \(k\) (df), and the asymptotic p-value (p_value), computed with the model-based covariance, orNULLfor an intercept-only mean model. The statistic and the p-value areNAwhen the tested covariance block is not numerically positive definite.
Maximum likelihood summaries also contain loglik, aic, bic,
convergence, and method.
Details
Let \(\hat\beta_2\) collect the \(k\) mean coefficients other than the
intercept and let \(\widehat{V}_{22}\) be the corresponding block of the
model-based covariance \((X^\top\widehat W X)^{-1}\) returned by
vcov(). The quasi-F test is based on the Wald statistic
$$W = \hat\beta_2^\top \widehat{V}_{22}^{-1} \hat\beta_2,$$
which has an asymptotic \(\chi^2_k\) distribution under \(H_0: \beta_2 = 0\) when the multiplicative variance model is correctly specified. The summary reports \(F = W / k\) together with the p-value \(P(\chi^2_k \ge W)\), that is, \(F\) is referred to the asymptotic \(\chi^2_k / k\) distribution, in line with the normal reference of the mean-coefficient Wald tests. The statistic has the form of the joint tests studied by Godfrey (2006), which use heteroskedasticity-consistent covariance matrices in place of the model-based covariance used here.
When the mean model has no intercept, all mean coefficients are tested; for
an intercept-only mean model, the test is omitted. The null values are zero
regardless of the null argument of gls_mult().
References
Godfrey, L. G. (2006). Tests for regression models with heteroskedasticity of unknown form. Computational Statistics and Data Analysis, 50(10), 2715-2733. doi:10.1016/j.csda.2005.04.004
