lisa | R Documentation |
This code was modified from the moran function above. LISA is directional and is the association centered around marker y. The column means of LISA are equal to Moran's I.
lisa( y, x, listw, comp = NULL, zero.policy = FALSE, NAOK = FALSE, demean = TRUE )
y |
A vector to compute the index relative to. |
x |
A matrix of variables to compute the lisa with y. |
listw |
A listw object specifying the weighting matrix. |
comp |
A vector of integers, strings, or factors indicating broad tissue compartments in which to compute Moran's I. |
zero.policy |
How to deal with zones without neighbors. If TRUE assign zero to the lagged value of zones without neighbours, if FALSE assign NA |
NAOK |
If TRUE, NAs are removed in computations. |
demean |
If TRUE demean columns of x. Might not want to if x is dummy variables. |
Returns a list of matrices, where each matrix is the multivariate Moran's I for each tissue compartment.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.