| project_pals | R Documentation |
Computes Projected Actor Locations for a set of actors at one or more prediction times (an actor-by-time grid).
project_pals(
events,
actors = NULL,
predict_time,
params,
alter_weight = c("normalized", "legacy"),
eps = 0.01,
cutoff = c("day", "month", "year")
)
events |
A pal_events object. |
actors |
Character vector of actor ids. Defaults to all actors in |
predict_time |
A |
params |
A pals_params object or a fitted estimate_pals object. |
alter_weight |
|
eps |
Numerical offset inside each age weight (default |
cutoff |
History granularity: |
A data.frame with columns actor, time, lon, lat, n_focal,
n_alter, has_history (one row per actor-time combination).
ev <- simulate_conflict_events(n_actors = 10, n_events = 300, seed = 1)
p <- pals_params(alpha = 0.9, beta = 0.2, gamma = -10, eta = -10)
pal <- project_pals(ev, predict_time = as.Date("2010-12-01"), params = p)
head(pal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.