social.signal: Social signal

Description Usage Arguments Value Examples

Description

Calculates the social signal for a given variable (essentially just Moran's I, but using the social correlation matrix as the weights)

Usage

1

Arguments

x

a numeric vector of social data.

S

a social correlation matrix.

Value

A list containing the computed global social signal (Is), the p-value of a test of the null hypothesis that there is no social autocorrelation under the assumption of normality (p.value), and the local social signal for each node (I.local).

Examples

1
2
3
4
5
6
7
8
A = matrix(c(0,1,0,1,0,
             1,0,0,1,1,
             0,0,0,1,1,
             1,1,1,0,0,
             0,1,1,0,0), nrow=5)
S = social.cor.matrix(A)
x = rnorm(nrow(A))
s = social.signal(x, S)

social documentation built on May 2, 2019, 12:36 p.m.

Related to social.signal in social...