An integrated workflow for relational event models, in which
timestamped interactions among actors arrive in continuous time and the
event rate depends on the history of the network itself. Event streams are
simulated by an exact Gillespie kernel or an approximate tau-leap kernel;
non-events are drawn by case-control sampling in the manner of Lerner and
Lomi (2020)
amorem is an R package for simulation and inference in relational event models (REMs) and relational hyper event models (RHEMs) — dynamic network data in continuous time.
Everything lives on the documentation site:
Installation, the quick-start tutorial, the full guide set (simulation, endogenous catalogue, estimation, hyperedge models, datasets, analyses of bundled event logs, validation experiments), and the complete function reference are all there.
simulate_relational_events() with an exact Gillespie
kernel or an approximate tau-leap kernel; simulators for undirected and
directed hyper-events.standardize_event_log(), sample_non_events()
(case-control sampling), attach_static_covariates(),
simulate_actor_covariates().endogenous_features() (timing, closure and balance
effects of Juozaitienė & Wit) and hyperedge_features().rem() with three backends: clogit (conditional-logistic
partial likelihood), gam (one-control binomial form with smooth,
time-varying and random effects: tv(), nl(), tvnl(), re()), and nn
(neural or additive-spline scorer; nn_uncertainty() gives bootstrap bands,
and nn_control(engine = "torch") is optional).compare_models() and its _global /
_smooth variants; martingale-residual goodness of fit (gof_*(),
martingale_residuals()).data/, sources in data-raw/).devtools::document() # regenerate man/ and NAMESPACE
devtools::test() # tests/testthat
devtools::check(cran = TRUE)
pkgdown::build_site() # local preview of the docs site
CI runs R CMD check on GitHub Actions (.github/workflows/R-CMD-check.yaml)
and, on every push to main, builds the pkgdown site and deploys it to the
gh-pages branch, so the site needs no manual deploy.
Web-only guides live in vignettes/articles/ and are excluded from the CRAN
build.
Remotes. origin is GitHub (public; CRAN URL, issues, the docs site).
forge is the private Forgejo working copy (forge:pancho/amorem).
gof_rem(), thirteen new datasets, the data catalogue), not yet submitted.rem(); resolving the S3 class
clash on "rem" with relevent::rem() and redeem::rem().coxme path with two random-effect axes
(random_effects = c("sender", "receiver")) has not been re-validated since
the stratification fix.air,
~/System/Research/amorem-revision-20260812/). The local paper/ folder is
gitignored.Methodological background for the models implemented in amorem:
MIT, see LICENSE.