send: send

View source: R/effectsTie.R

sendR Documentation

send

Description

This function specifies the input for the send effect in the formula argument for the function remulateTie or remulateActor. Not to be used independently

Usage

send(param = NULL, variable, attr_actors, scaling = c("none", "std"))

Arguments

param

numeric value, data.frame or function with time parameter. Specifies the value of the effect for the statistic in the REM model

variable

character vector specifies the name of the column with covariate value in data dataframe

attr_actors

data.frame object with rows specifying values of data for an actor. First column must contain actor id, Second column time when covariate value changes (default zero if no change), Third column contains values for the data with column name corresponding to variable name

scaling

specifies the method for scaling the statistic. "none" [default] gives raw value of the statistic at time t, "std" the statistic is standardized per time

Details

Sender covariate: The tendency to create an event i->j when i has a high attribute value.

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.

Value

List with all information required by ‘remulate::remulateTie()' or ’remulate::remulateActor()' to compute the statistic.


remulate documentation built on April 16, 2025, 5:09 p.m.