| predict.pals_fit | R Documentation |
Project locations from a fitted PALS model
## S3 method for class 'pals_fit'
predict(
object,
newdata = NULL,
predict_time = NULL,
type = c("pal", "event"),
actors = NULL,
...
)
object |
A |
newdata |
Optional pal_events (for |
predict_time |
For |
type |
|
actors |
For |
... |
Unused. |
A data.frame of projections (see project_pals / predict_event_locations).
ev <- simulate_conflict_events(n_actors = 8, n_events = 200, seed = 1)
fit <- estimate_pals(ev, model = "one")
predict(fit, predict_time = as.Date("2013-12-01"), type = "pal")[1:5, ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.