| simulate_conflict_events | R Documentation |
Generates a synthetic dataset of dyadic interaction events with the qualitative structure PALS is designed for: a set of armed-group-like actors, each following a slowly drifting spatial trajectory, that interact preferentially with nearby actors. Useful for examples, tests, and the package vignette. The geographic frame approximates Nigeria, echoing the application in Kim, Liu and Desmarais (2023).
simulate_conflict_events(
n_actors = 30,
n_events = 2000,
years = 2000:2016,
drift = 0.18,
jitter = 0.25,
decay = 2,
bbox = c(2.7, 14.7, 4, 13.9),
seed = NULL
)
n_actors |
Number of actors (default 30). |
n_events |
Number of dyadic events (default 2000). |
years |
Integer vector of years to span (default |
drift |
Standard deviation (decimal degrees per year) of each actor's directional
drift; larger values make actors more mobile (default |
jitter |
Standard deviation (decimal degrees) of event-location noise around the
midpoint of the two actors' current locations (default |
decay |
Spatial interaction scale (degrees): partners are chosen with probability
proportional to |
bbox |
Bounding box |
seed |
Optional integer seed for reproducibility. |
A pal_events object with columns actor1, actor2, time, lon, lat.
ev <- simulate_conflict_events(n_actors = 12, n_events = 400, seed = 42)
ev
summary(ev)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.