Package: redeem 1.1.0

redeem: Relational Event and Durational Event Models

Model relational and durational events in a counting process framework, with functions for estimating and simulating Relational Event Models (REM) and Durational Event Models (DEM). Includes support for time-varying covariates, windowed statistics, and high-dimensional node-level fixed effects. References include Fritz et al. (2026) "Scalable Durational Event Models: Application to Physical and Digital Interactions" <doi:10.48550/arXiv.2504.00049>.

Authors:Cornelius Fritz [aut, cre]

redeem_1.1.0.tar.gz
redeem_1.1.0.zip(r-4.7-x86_64)redeem_1.1.0.zip(r-4.7-arm64)redeem_1.1.0.zip(r-4.6-x86_64)redeem_1.1.0.zip(r-4.6-arm64)redeem_1.1.0.zip(r-4.5-x86_64)
redeem_1.1.0.tgz(r-4.6-arm64)redeem_1.1.0.tgz(r-4.6-x86_64)redeem_1.1.0.tgz(r-4.5-x86_64)redeem_1.1.0.tgz(r-4.5-arm64)
redeem_1.1.0.tar.gz(r-4.7-arm64)redeem_1.1.0.tar.gz(r-4.7-x86_64)redeem_1.1.0.tar.gz(r-4.6-arm64)redeem_1.1.0.tar.gz(r-4.6-x86_64)
redeem_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
redeem/json (API)

# Install 'redeem' in R:
install.packages('redeem', repos = c('https://corneliusfritz.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/corneliusfritz/redeem/issues

Pkgdown/docs site:https://corneliusfritz.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

openblascpp

6.20 score 2 stars 75 scripts 315 downloads 71 exports 9 dependencies

Last updated from:404f0d4009. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK179
linux-devel-x86_64OK214
source / vignettesOK286
linux-release-arm64OK173
linux-release-x86_64OK224
macos-release-arm64OK187
macos-release-x86_64OK622
macos-oldrel-arm64OK225
macos-oldrel-x86_64OK574
windows-devel-arm64OK429
windows-devel-x86_64OK274
windows-release-arm64OK449
windows-release-x86_64OK231
windows-oldrel-x86_64OK225
wasm-releaseOK118

Exports:baselinecheck_matrixcommon_partnercontrol.redeemcountcurrent_common_partnercurrent_common_partner_ISPcurrent_common_partner_ITPcurrent_common_partner_OSPcurrent_common_partner_OTPcurrent_common_partnerscurrent_count_absdiffcurrent_count_in_receivercurrent_count_in_sendercurrent_count_out_receivercurrent_count_out_sendercurrent_count_sumcurrent_degree_absdiffcurrent_degree_in_receivercurrent_degree_in_sendercurrent_degree_out_receivercurrent_degree_out_sendercurrent_degree_sumcurrent_interactioncurrent_triangledegreedegreesdemdem.simulatedurationdyadic_covgeneral_common_partnergeneral_common_partner_ISPgeneral_common_partner_ITPgeneral_common_partner_OSPgeneral_common_partner_OTPgeneral_common_partnersgeneral_count_absdiffgeneral_count_in_receivergeneral_count_in_sendergeneral_count_out_receivergeneral_count_out_sendergeneral_count_sumgeneral_degree_absdiffgeneral_degree_in_receivergeneral_degree_in_sendergeneral_degree_out_receivergeneral_degree_out_sendergeneral_degree_sumgeneral_triangleget_oos_likelihoodget_rankingget_residualsinertiainterceptInterceptmonadic_covnumber_interactionplot_baselinepredict_baseline_trendpspsABAYpsABBApsABBYpsABXApsABXBpsABXYreciprocityremrem.simulatetriangle

Dependencies:data.tabledigestlatticeMASSMatrixRcppRcppArmadilloRcppProgresssurvival

Mathematical Definitions and Formula Specifications of Sufficient Statistics
Overview | Statistic Transformations | Formula Examples | Baseline and Nuisance Terms | 1. Intercept (intercept / Intercept) | 2. Time-Varying Baseline (baseline) | 3. Degree Fixed Effects (degree / degrees) | Endogenous Dyadic Terms | 1. Inertia (inertia / number_interaction) | 2. Reciprocity (reciprocity) | 3. Duration (duration / current_interaction) | 4. Participation Shifts (ps / psABBA, psABBY, psABAY, psABXA, psABXB, psABXY) | Triadic Closure and Shared Partners | 1. Common Partners (general_common_partners / current_common_partners / common_partner) | 2. Triangles (general_triangle / current_triangle / triangle) | Degree and Centrality Statistics | 1. Binary Degree Statistics (general_degree_*, current_degree_*, degree) | 2. Weighted Event Count Statistics (general_count_*, current_count_*, count) | Exogenous Statistics | 1. Dyadic Covariate (dyadic_cov) | 2. Monadic Covariate (monadic_cov)

Last update: 2026-08-05
Started: 2026-06-04

Introduction to Durational Event Models
Abstract | Theoretical Framework | Summary Statistics | Fine-tuning with \code | Example: Simulating and Fitting a DEM | Data Preparation | Model Fitting | Interpretation | Simulation and Model Diagnostics | Predicting and Simulating Events | Residual Analysis | References

Last update: 2026-06-04
Started: 2026-06-04

Introduction to Relational Event Models
Abstract | Theoretical Framework: Relational Event Models | Summary Statistics and Degree Effects | Example: Simulating and Fitting a REM | Data Preparation | Model Fitting | Interpretation | Simulation and Model Diagnostics | Predicting and Simulating Events | Residual Analysis

Last update: 2026-06-04
Started: 2026-06-04

Readme and manuals

Help Manual

Help pageTopics
Validate the Structure of a Durational Event Listcheck_matrix
Control Parameters for REDEEM Modelscontrol.redeem
Durational Event Model (DEM) Estimationdem
The dem Objectdem-class dem_object
Simulate events based on specified formulas and coefficientsdem.simulate
Out-of-sample Log-Likelihood (Proper Scoring Rule)get_oos_likelihood
Get ranking for test events (Out-of-Sample Goodness-of-Fit)get_ranking
Get residuals for model diagnostics (Cox-Snell Residuals)get_residuals
Plot the Estimated Baseline Intensityplot_baseline
Predict the baseline intensity trend at one or more future time pointspredict_baseline_trend
redeem Model Termsbaseline common_partner count current_common_partner current_common_partners current_common_partner_ISP current_common_partner_ITP current_common_partner_OSP current_common_partner_OTP current_count_absdiff current_count_in_receiver current_count_in_sender current_count_out_receiver current_count_out_sender current_count_sum current_degree_absdiff current_degree_in_receiver current_degree_in_sender current_degree_out_receiver current_degree_out_sender current_degree_sum current_interaction current_triangle degree degrees duration dyadic_cov general_common_partner general_common_partners general_common_partner_ISP general_common_partner_ITP general_common_partner_OSP general_common_partner_OTP general_count_absdiff general_count_in_receiver general_count_in_sender general_count_out_receiver general_count_out_sender general_count_sum general_degree_absdiff general_degree_in_receiver general_degree_in_sender general_degree_out_receiver general_degree_out_sender general_degree_sum general_triangle inertia Intercept intercept monadic_cov number_interaction ps psABAY psABBA psABBY psABXA psABXB psABXY reciprocity redeem_terms statistics terms triangle
Relational Event Model (REM) Estimationrem
The rem Objectrem-class rem_object
Simulate a Relational Event Model (REM)rem.simulate
Summary of a 'redeem_result' Model Fitsummary.redeem_result