Skip to contents

These functions calculate the respective behavior statistic for ego. When multiplied with the importance of each statistic (the 'parameters') this constitutes the network evaluation of ego. See: ts_eval().

Usage

ts_linear(beh, ego)

ts_quad(beh, ego)

ts_avAlt(beh, net, ego, cov = NULL)

ts_effFrom(beh, net = NULL, ego, cov)

Arguments

beh

behavioral dependent variable

ego

numeric, the ego for which we want to calculate the network statistic.

net

matrix, the adjacency matrix representing the relations between actors. Valid values are 0 and 1.

cov

numeric, covariate scores

Value

numeric value

Details

For examples on how to use these statistics see: vignette("Introduction_RsienaTwoStep", package="RsienaTwoStep").

For the mathematical definition of these network statistics see chapter 12 of the RSiena manual (Ripley et al. 2022) .

References

Ripley RM, Snijders TA, Boda Z, Vörös A, Preciado P (2022). Manual for SIENA version 4.0 (version August 11, 2022). http://www.stats.ox.ac.uk/~snijders/siena/RSiena_manual.pdf.

See also

ts_eval()

Other networkstatistics: ts_degree()

Examples

ts_linear(df_ccovar1$cov2, ego=3)
#> [1] 3