amorem: Augmented Modelling of Relational Events

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) <doi:10.1017/nws.2019.57>, or from a time-shifted copy of the process so that covariates shared by all dyads at a given time remain estimable (Lembo et al. 2025, <doi:10.1093/jrsssc/qlaf058>); the timing- and closure-based endogenous statistics of Juozaitiene and Wit (2024) <doi:10.1093/jrsssa/qnae132> are computed from that history; and one front-end fits the resulting case-control data by conditional-logistic partial likelihood, by penalised regression on its degenerate one-control binomial form (which admits smooth, time-varying and actor random effects), or by stochastic gradient descent, including the additive-spline construction of Filippi-Mazzola and Wit (2024) <doi:10.1093/jrsssc/qlae023>. Martingale-residual goodness-of-fit diagnostics are provided for the linear fit, together with simulation and statistic computation for relational hyper-events, a collection of documented event logs from published interaction networks, and a reconstructed El Nino index as a global covariate.

Version: 1.2.0
Depends: R (≥ 4.2.0)
Imports: splines, stats, Rcpp, survival (≥ 3.7-3), withr
LinkingTo: Rcpp
Suggests: torch, testthat (≥ 3.1.0), mgcv, coxme, roxygen2 (≥ 7.3.0), pkgdown (≥ 2.0.0), knitr, rmarkdown
Published: 2026-10-18
DOI: 10.32614/CRAN.package.amorem
Author: Francisco Richter [aut, cre], Martina Boschi [aut], Ernst C. Wit [aut], Melania Lembo [aut]
Maintainer: Francisco Richter <richtf at usi.ch>
BugReports: https://github.com/franciscorichter/amorem/issues
License: MIT + file LICENSE
URL: https://franciscorichter.github.io/amorem/, https://github.com/franciscorichter/amorem
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: amorem results

Documentation:

Reference manual: amorem.html , amorem.pdf
Vignettes: Endogenous mechanisms and time-varying global covariates (source, R code)
Exogenous dyadic covariates (source, R code)
Model comparison on a real REM dataset (source, R code)
Simulating relational events (source, R code)
Species invasions as a relational event process (source, R code)

Downloads:

Package source: amorem_1.2.0.tar.gz
Windows binaries: r-devel: amorem_1.0.0.zip, r-release: amorem_1.1.0.zip, r-oldrel: amorem_1.0.0.zip
macOS binaries: r-release (arm64): amorem_1.1.0.tgz, r-oldrel (arm64): not available, r-release (x86_64): amorem_1.1.0.tgz, r-oldrel (x86_64): amorem_1.1.0.tgz
Old sources: amorem archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=amorem to link to this page.