Description Usage Arguments Value References Examples

`calculateMoranI`

Moran's I computing method.

*
I = varOfInterest^t \times weightedM \times varOfInterest
*

1 | ```
calculateMoranI(distM, varOfInterest, scaling = TRUE)
``` |

`distM` |
the distance matrix. Altough the equation asks for weighted distant matrix, the paramenter that is required is only the distance matrix because this procedure calculate calculates the weighted distance mantrix by itself. |

`varOfInterest` |
the variable of interest to calculate Moran's I. |

`scaling` |
if the values are previously scaled, set this parameter to False. The default value is TRUE. |

Moran's I

1 2 3 4 | ```
inputFileName<-system.file("testdata", "chen.csv", package="Irescale")
input<-loadFile(inputFileName)
distM<-calculateEuclideanDistance(input$data)
I<-calculateMoranI(distM = distM,varOfInterest = input$varOfInterest)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.