Skip to contents

Simulation helpers

simulate_relational_events()
Simulate relational event sequences
simulate_actor_covariates()
Simulate exogenous actor covariates
simulate_hyperedge_events()
Simulate undirected hyperedge events (multi-actor meetings)
simulate_directed_hyperedge_events()
Simulate directed two-mode hyperedge events
simulate_directed_hyperevents_tvnl()
Simulate directed hyper-events with time-varying and non-linear effects

Preprocess module

standardize_event_log()
Standardize a relational event log
attach_static_covariates()
Attach static covariates to an event log
endogenous_features()
Compute endogenous event-network statistics
cpp_supported_stats
Endogenous statistics with a compiled fast path
sample_non_events()
Sample non-events for inference
widen_case_control()
Convert a long case-control event log to wide case-1-control format
transform_recency()
Recency transform of inter-event time gaps

Model fitting and comparison

rem()
Fit a relational (hyper)event model on preprocessed case-control data
nn_control()
Control parameters for the neural-network backend of rem()
nn_uncertainty()
Bootstrap uncertainty for the neural rem() backend
plot(<nn_uncertainty>)
Plot partial-dependence uncertainty bands
compare_models()
Compare candidate endogenous specifications by AIC
compare_models_smooth()
Compare candidate specifications with smooth (TV / NL / TVNL) effects
compare_models_global()
Compare REM specifications with global covariate effects

Diagnostics

martingale_residuals()
Martingale residuals from a case-control partial-likelihood fit
gof_univariate()
Goodness-of-fit test for a single FLE covariate
gof_multivariate()
Multivariate GOF test for smooth or random-effect covariates
gof_global()
Omnibus GOF test via Cauchy combination
gof_auxiliary()
GOF test for an auxiliary (unmodelled) statistic
gof_rem()
Goodness of fit for a fitted relational event model

Hyperedge data model

hyperedge_log() is_hyperedge_log() as_hyperedge_log() as_dyadic_log()
Build / detect / convert hyperedge event logs
hyperedge_sizes()
Cardinality columns for a hyperedge event log
hyperedge_activity()
Activity counter for hyperedge subsets
hyperedge_subrep()
Subset repetition statistic for a hyperedge event log
hyperedge_features()
Endogenous features for a hyperedge event log

Data: event logs

classroom_events
Classroom interaction events (McFarland 2001)
classroom_actors
Classroom actor attributes (McFarland 2001)
social_evolution_calls
Phone calls in the Social Evolution study (Madan et al. 2012)
social_evolution_actors
Actor attributes for the Social Evolution study
social_evolution_friendship
Friendship-survey events for the Social Evolution study
radoslaw_email
Manufacturing-company email events (Nurek & Michalski 2020)
radoslaw_hierarchy
Reporting hierarchy of the manufacturing company (Nurek & Michalski 2020)
college_msg
CollegeMsg: private messages on a university online community
email_eu_core
Email-Eu-Core temporal (single-department subset)
copenhagen_calls copenhagen_sms copenhagen_actors
Copenhagen Networks Study: phone calls, text messages and gender
us_leader_visits
US leader-to-leader visits, 1945–2019
football_results
Men's international football results since 1872
ucdp_dyads
UCDP dyadic conflict data, 1946–2025
alien_invasions
Alien species first records, prepared for relational event models
alien_mammals
Alien mammals: risk table with covariates (Juozaitienė et al. 2023)

Data: hyperevents

congress_bills_118
Bills of the 118th US Congress as hyperevents
congress_members_118
Members of the 118th US Congress

Data: global covariates

enso_nino34
Reconstructed Niño3.4 ENSO index, 1301–2005 (Li et al. 2013)
oni
Oceanic Niño Index, 1950–present
daily_weather
Daily weather at the places and periods of the bundled event logs
public_holidays
Public holidays for the periods of the bundled event logs
dist_matrix
US state distance matrix