Extract glance summary from prepped fits or estimates_vcov object
Source:R/estimates_vcov.R
get_glance_df.RdGeneric function to extract model-level summaries. Works with:
prepped_fitstibbles (unnests glance_obj)estimates_vcovobjects (not applicable - returns NULL with warning)
See also
Other component accessors:
get_estimates_df(),
get_vcov()
Examples
library(randomizr)
library(estimatr)
set.seed(123)
dat <- data.frame(Z = complete_ra(100, num_arms = 2), Y = rnorm(100))
fit <- lm_robust(Y ~ Z, data = dat)
prepped <- prep_fit(fit, term = "ZT2")
get_glance_df(prepped)
#> # A tibble: 1 × 7
#> r.squared adj.r.squared statistic p.value df.residual nobs se_type
#> <dbl> <dbl> <dbl> <dbl> <dbl> <int> <chr>
#> 1 0.000416 -0.00978 0.0408 0.840 98 100 HC2