You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' @description `eepd_boot()` bootstraps the selection of optimal models and estimation of ATTs done by [eepd_sim()] in order to account for uncertainty in sampling from the population. Bootstrapping is done by [fwb::fwb()], which uses the fractional weighted bootstrap or the traditional bootstrap.
4
+
#'
5
+
#' @inheritParams eepd_fit
6
+
#' @inheritParams fwb::fwb
7
+
#' @param models either an `eepd_models` object (the output of a call to [eepd_mod()]) or an `eepd_fits` object (the output of a call to [eepd_fit()]). If the latter, the arguments `data`, `group_var`, `unit_var`, `time_var`, `val_times`, and `post_time` should be left empty as they will be extracted from the supplied object.
8
+
#' @param nboot the number of bootstrap iterations to use; default is 999. More is better but takes longer.
9
+
#' @param boot_type string; the type of bootstrap to perform. See the `wtype` argument of [fwb::fwb()] for allowable options. The default is `"exp"`, which requests the fractional weighted bootstrap using weights drawn from an Exp(1) distribution. `"multinom"` requests the usual bootstrap, which can fail when key observation requird to fit certain models happen not to be selected into a given bootstrap sample.
10
+
#' @param nsim the number of simulation iteration to perform in each bootstrap sample. Default is 200. More is better but takes longer.
11
+
#'
12
+
#' @returns
13
+
#' An `fwb` object containing the estimated ATTs in each bootstrap iteration. See [fwb::fwb()] for details. `summary()`, `plot()`, and `print()` methods are available; see [fwb::summary.fwb()] and [fwb::plot.fwb()] for details.
chk::err("`models` must be an `eepd_models` object (the output of a call to `eepd_mod()`) or an `eepd_fits` object (the output of a call to `eepd_fit()`")
0 commit comments