event: event

View source: R/effects.R

eventR Documentation

event

Description

Specifies the statistic for an "event" effect in the tie-oriented model. An "event" effect refers to an exogenous event attribute that affects the waiting time between events.

Usage

event(x, variableName = NULL)

Arguments

x

vector with the event attribute

variableName

optionally, a string indicating the variable name, used for the dimnames of the output statistics object

Details

The statistic at timepoint t is for all dyads in the risk set equal to the attribute of the event at timepoint t.

Value

List with all information required by 'remstats::remstats()' to compute the statistic.

See Also

FEtype

Examples


  reh_tie <- remify::remify(history, model = "tie")
  data(history, package = "remstats")
  history$work <- ifelse(history$setting == "work", 1, 0)
  effects <- ~ event(x = history$work, variableName = "setting_is_work")
  remstats(reh = reh_tie, tie_effects = effects)



remstats documentation built on May 29, 2024, 5:21 a.m.