social.signal {social} | R Documentation |
Social signal
Description
Calculates the social signal for a given variable (essentially just Moran's I, but using the social correlation matrix as the weights)
Usage
social.signal(x, S)
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
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)
[Package social version 1.0 Index]