Runs only the estimator steps of a design against a supplied data frame.
Value
A tibble with one row per estimate from the estimator and test
steps between start and end, as draw_estimates() returns but
without estimands. An empty tibble when that range holds no estimator.
See also
Other drawing from a design:
draw_data(),
draw_estimands(),
draw_estimates(),
run_design()
Examples
design <- declare_model(N = 30, U = rnorm(N), Z = rep(0:1, 15), Y = U + Z) +
declare_estimator(Y ~ Z, .method = lm, term = "Z", label = "ols")
df <- draw_data(design)
get_estimates(design, df)
#> # A tibble: 1 × 8
#> term estimate std.error statistic p.value conf.low conf.high estimator
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <chr>
#> 1 Z 0.466 0.354 1.32 0.199 -0.259 1.19 ols