This function specifies the input for the interact effect in the formula
argument for the function remulateTie
or remulateActor
. Not to be used independently
interact(param = NULL, indices, scaling = c("none", "std"))
List with all information required by `remulate::remulateTie()` or 'remulate::remulateActor()' to compute the statistic.
numeric value, data.frame or function with time parameter. Specifies the value of the effect for the statistic in the REM model
is a numeric vector of indices corresponding to the effects specified in effects
argument of function remulateTie
or remulateActor
on which the interaction term needs to be computed.
specifies the method for scaling the statistic after the interaction has been computed. "none"
[default] gives raw value of the statistic at time t, "std"
the statistic is standardized per time
if param is a data frame, it must have three columns: sender, receiver, and value (numeric), representing the parameter value for thay dyadic pair. The data.frame must contain all pairs of actors or dyads corresponding to the riskset.
if param is a function, it's first argument must be 't', corresponding to the time. The function may have additional arguments.