event | R Documentation |
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.
event(x, variableName = NULL)
x |
vector with the event attribute |
variableName |
optionally, a string indicating the variable name, used for the dimnames of the output statistics object |
The statistic at timepoint t is for all dyads in the risk set equal to the attribute of the event at timepoint t.
List with all information required by 'remstats::remstats()' to compute the statistic.
FEtype
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.