duremstats: Compute active-state statistics for a 'remify_durem' object

View source: R/duremstats.R

duremstatsR Documentation

Compute active-state statistics for a remify_durem object

Description

Computes statistics that capture the current state of the active event network at each time point. These complement the history-weighted statistics returned by remstats and cannot be derived from weighted event history alone.

Usage

duremstats(
  reh,
  start_effects = NULL,
  end_effects = NULL,
  start = 2L,
  stop = Inf,
  display_progress = FALSE
)

Arguments

reh

A remify_durem object.

start_effects

Formula of active-state effects for the start model, e.g. ~ activeTie() + activeOutdegreeSender().

end_effects

Formula of active-state effects for the end model.

start

Integer. Index of first time point to compute (default 2).

stop

Integer. Index of last time point to compute (default Inf).

display_progress

Logical. Show progress messages.

Details

See active_effects for the full list of available effects and their descriptions.

Value

A list with $start_stats and $end_stats: 3-D arrays \[M x D x P\] with effect names suffixed .start / .end, and attr(., "reh") set to reh. The same shape as a remstats_durem object so the two can be combined at estimation time.


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