Extract additional info from donut_analysis model
extract_info.Rd
Convenience function to extract distances as well as number of treated,
observations, original observations, percentage of treated, clusters, and
treated clusters from donut_analysis model.
Input needs to be a (list of) donut_analysis
models.
Examples
data(donut_data)
model <-
donut_analysis(dist = c(5, 20), ds = donut_data, dep_var = "wealth_index",
indep_vars = "age", fe = "id", clust = TRUE, bootstrap = FALSE)
extract_info(model)
#> # A tibble: 1 × 8
#> name inner outer n_treated n_obs perc_treated n_clust n_clust_treated
#> <chr> <dbl> <dbl> <int> <int> <dbl> <int> <int>
#> 1 value 5 20 2264 30762 0.0736 20 20