Description Usage Arguments Value Examples
Calculates the social signal for a given variable (essentially just Moran's I, but using the social correlation matrix as the weights)
1 | 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
).
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.