Skip to content

amorem

1.2.0Package record

Augmented Modelling of Relational Events

0packages depend
1.5Kdownloads / year
91.2%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.2.0

Bug fixes

  • rem(method = "gam") warns when rows with missing covariate values are left out of the fit, and records which rows it used (fit$rows, with fit$n counting only those). gof_rem() keeps the same rows when given the full data; it stopped with "non-conformable arguments" before.
  • sample_non_events(scope = "citation") always draws the citing paper and the cited papers from separate pools. Under the mode = "one" default of 1.1.0 it pooled them, so most controls had a sender other than the citing paper.
  • rem(method = "nn") and nn_uncertainty() no longer change the caller's random-number state when given a seed (CRAN policy); fitted results are unchanged.
Show all changes in 1.2.0Hide the rest of the changes in 1.2.0
  • Partial-dependence curves of plot() on neural fits and of nn_uncertainty() span the 1st to 99th percentile of each feature instead of the mean ± 2 standard deviations, which reached below the data for skewed, non-negative statistics.
  • Concordance of neural fits splits a tied top score evenly between the tied candidates; it gave the whole stratum to the event.
  • simulate_relational_events(method = "tau_leap") stops with a message when a single step would draw more than ten million events, which happens when an effect grows without bound; it could exhaust memory.

New features

  • gof_rem() tests a model fitted with rem(method = "gam") with cumulative martingale residuals (Boschi & Wit 2025): over event time (test = "time"), over the quantiles of a covariate (test = "functional_form", which detects a wrong shape of the effect), or over the quantiles weighted by the term's basis (test = "functional_form_score"). It works on linear and smooth terms of the fitted model, and its null distribution is a multiplier bootstrap that subtracts the drift from estimating the coefficients. It has print() and plot() methods (plot() takes main and a legend position). The existing gof_univariate(), gof_multivariate(), gof_global() and gof_auxiliary() are unchanged.
  • rem() fits store the name of their time column.

Datasets

  • New alien_mammals: the risk table of the first records of alien mammals with the covariates of Juozaitienė et al. (2023) (distance to the nearest invaded region, trade, temperature difference, colonial ties, land use), and the never-at-risk pairs and species entry years as attributes; used in the species-invasion section of the software paper.
  • New event logs, all under licences that allow redistribution: copenhagen_calls, copenhagen_sms and copenhagen_actors (Copenhagen Networks Study, MIT); us_leader_visits (leader-to-leader visits to and from the United States, 1945-2019, CC0); football_results (men's international football matches since 1872, CC0); ucdp_dyads (UCDP armed-conflict dyads, 1946-2025, CC BY 4.0); alien_invasions (first records of alien species by region, 1880-2005, CC0).
  • New hyperevent log: congress_bills_118, one sponsor and the cosponsors of each bill of the 118th US Congress, with congress_members_118 (public domain).
  • New global covariates: oni (Oceanic Nino Index since 1950), daily_weather (NOAA daily temperature and precipitation for the cities of the bundled email and messaging logs) and public_holidays.
  • radoslaw_email is rebuilt from the authors' CC0 release (Nurek & Michalski 2020, doi:10.7910/DVN/6Z3CGX). It keeps the original employee ids, which match the new radoslaw_hierarchy (who reports to whom), and its timestamps are read as Warsaw local time. The previous copy, from Network Repository, read them as UTC, so it ignored daylight saving time: events sent during Polish summer time are now one hour earlier relative to the first event, and unix_origin is one hour earlier. The number of events and each employee's activity are unchanged.
  • The pkgdown site has a data catalogue: licences, download code and structural profiles of 78 relational-event datasets and covariates, including the many whose licences do not allow amorem to redistribute them.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 7.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK7 OK2026-06-30
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 475 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
53 (1 internal)includes a package overview page
Examples that run
68%15 run in a plain check · 7 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
72%
Documented parameters
80%
Return-value docs
100%
Help pages citing references
34%

Downloads

1.5K
CRAN downloads in the past year
Rank #7,799 · ~4/day · ~128/mo
Daily download trend is not available in this view yet.
44130 days
1.2K90 days
1.5K1 year
Compare downloads with other packages →
Also on86 r2u25 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
0Releases
252Commits
3Commit identities
252 commits · Last activity 2026-10-18 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
90%
Median days to close, 50 most recently updated closed issues
4
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-07-07 · 02026-07-29 · 1
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/franciscorichter/amorem on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-18 · The repository has a site deploy workflow

pkgdown site last built 2026-10-18

Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-05-14
    Named in .Rbuildignore: .claude
    Named in .gitignore: .claude
    Pull request it wrote: opened by a project member
    Commits: at least 15 crediting it in the message
Models named in its commits
  • Claude Opus 4.88 commits · Jun 2026
  • Claude Fable 54 commits · Jun 2026
  • Claude Opus 4.73 commits · May 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing amorem adds 2 packages (1 with compiled code, 1.9 MB of source tarballs). Heaviest: Rcpp 1.8 MB, withr 102 KB.

Depends (1)
R >= 4.2.0
Imports (5)
splinesstatsRcppsurvivalwithr
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Author, Maintainer since 1.0.0 (2026)
Releases (3)

Pick two releases to compare their code metrics.

  • 1.2.0Latest
    record
    2026-10-18 · current release · diff ↗ ·
    added 1 export
    gof_rem
  • 1.1.0
    record
    2026-10-17 · diff ↗ ·
    10 hours in CRAN's queue
    Listed in CRAN's incoming queue from 2026-10-17 11:54 to 2026-10-17 21:55 UTC, in 5 readings.
  • 1.0.0
    record
    2026-06-29
  • R
    R 4.6.0 released · 2026-04-24
Across CRAN, the median accepted release of the past year spent 26 hours in the queue, 90% under 11 days.How queue time is measured

Package metadata

First published
2026-06-29
Total releases
3 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.2.0
Bundled data
1.6 MB / 24 files
Download size
2.5 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("amorem")
Richter, F., Boschi, M., Lembo, M., & Wit, E. C. (2026). amorem: Augmented Modelling of Relational Events (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.amorem

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for amorem version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy