| bootstrap_pals | R Documentation |
Quantifies uncertainty in PALS parameter estimates and in projected actor
locations by resampling events with replacement and re-estimating the model on
each bootstrap replicate, following Kim, Liu and Desmarais (2023). Each replicate
yields a parameter vector and (optionally) a set of Projected Actor Locations; the
collection of replicate PAL sets can be treated as multiple imputations and pooled
with Rubin's Rules (see pool_rubin()).
bootstrap_pals(
events,
R = 50,
model = c("four", "one"),
predict_time = NULL,
actors = NULL,
seed = NULL,
...
)
events |
A pal_events object. |
R |
Number of bootstrap replicates (default |
model |
|
predict_time |
Optional |
actors |
For projection, which actors to project (default: all in |
seed |
Optional integer seed; replicate |
... |
Further arguments passed to estimate_pals (e.g. |
Resampling is over rows of events (the nonparametric event bootstrap).
Duplicated events are kept as ordinary repeated events. Replicates whose
optimizer fails to converge are retained but flagged via the convergence
column of estimates.
An object of class pals_boot with components:
estimatesAn R-row data.frame of replicate parameter estimates.
estimateThe point estimate on the full sample (an estimate_pals fit).
projectionsIf predict_time was given, a data.frame of projected
lon/lat for every actor-time-replicate combination; otherwise NULL.
R, model, callBookkeeping.
Methods: print(), summary() (bootstrap SEs / percentile intervals), and
coef() (the full-sample point estimate).
estimate_pals(), pool_rubin().
ev <- simulate_conflict_events(n_actors = 8, n_events = 200, seed = 1)
bt <- bootstrap_pals(ev, R = 10, model = "one", seed = 1)
summary(bt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.