Glance accepts a model object and returns a tibble::tibble()
with exactly one row of model summaries. The summaries are typically
goodness of fit measures, p-values for hypothesis tests on residuals,
or model convergence information.
Glance never returns information from the original call to the modelling function. This includes the name of the modelling function or any arguments passed to the modelling function.
Glance does not calculate summary measures. Rather, it farms out these
computations to appropriate methods and gathers the results together.
Sometimes a goodness of fit measure will be undefined. In these cases
the measure will be reported as NA
.
# S3 method for ivreg glance(x, diagnostics = FALSE, ...)
x | An |
---|---|
diagnostics | Logical indicating whether to include statistics and
p-values for Sargan, Wu-Hausman and weak instrument tests. Defaults to
|
... | Additional arguments. Not used. Needed to match generic
signature only. Cautionary note: Misspelled arguments will be
absorbed in |
A one-row tibble with columns
The percent of variance explained by the model
r.squared adjusted based on the degrees of freedom
The square root of the estimated residual variance
Wald test statistic
p-value from the Wald test
Degrees of freedom used by the coefficients
residual degrees of freedom
Statistic for Sargan test
P-value for Sargan test
Statistic for Wu-Hausman test
P-value for Wu-Hausman test
Statistic for Wu-Hausman test
P-value for weak instruments test
glance()
, AER::ivreg()
Other ivreg tidiers: augment.ivreg
,
tidy.ivreg
library(AER)#> Error in library(AER): there is no package called ‘AER’#> Error in find.package(package, lib.loc, verbose = verbose): there is no package called ‘AER’#> Error in ivreg(log(packs) ~ income | population, data = CigarettesSW, subset = year == "1995"): could not find function "ivreg"summary(ivr)#> Error in summary(ivr): object 'ivr' not foundtidy(ivr)#> Error in tidy(ivr): object 'ivr' not found#> Error in tidy(ivr, conf.int = TRUE): object 'ivr' not found#> Error in tidy(ivr, conf.int = TRUE, exponentiate = TRUE): object 'ivr' not foundaugment(ivr)#> Error in augment(ivr): object 'ivr' not foundglance(ivr)#> Error in glance(ivr): object 'ivr' not found