| project_pal | R Documentation |
Computes the Projected Actor Location (PAL) for one actor at one or more prediction times, given a parameter set.
project_pal(
events,
actor,
predict_time,
params,
alter_weight = c("normalized", "legacy"),
eps = 0.01,
cutoff = c("day", "month", "year")
)
events |
A pal_events object. |
actor |
The focal actor id (length-1 character). |
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 one row per prediction time and columns actor, time,
lon, lat, n_focal, n_alter, has_history. lon/lat are NA when the
actor has no prior events.
ev <- simulate_conflict_events(n_actors = 8, n_events = 200, seed = 1)
p <- pals_params(alpha = 0.9, model = "one")
project_pal(ev, actor = "G01", predict_time = as.Date("2010-12-01"), params = p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.