dot-build_riskset_matrix: Build the riskset matrix for active-state stats

.build_riskset_matrixR Documentation

Build the riskset matrix for active-state stats

Description

Uses the exported C++ helpers get_riskset and convert_to_risksetMatrix with 0-based actor IDs, matching the convention used internally by tomstats.

Usage

.build_riskset_matrix(N, directed, C = 1L)

Arguments

N

Number of actors.

directed

Logical.

C

Number of event types (default 1).

Value

Numeric matrix of dyad IDs (0-based, -999 for absent dyads). Dimensions N × N when C = 1; N*C × N*C when C > 1.


remstats documentation built on July 15, 2026, 5:07 p.m.