social.signal {social} | R Documentation |
Calculates the social signal for a given variable (essentially just Moran's I, but using the social correlation matrix as the weights)
social.signal(x, S)
x |
a numeric vector of social data. |
S |
a social correlation matrix. |
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
).
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)