Description Usage Arguments Value Examples
nullDristribution
Calculate a linear regression between variable of interest and latitude, longitude and latitude*longitude. The residuals of this data set is calculated
The variable of interest is shuffle by numReplicates times and each time the linear regression and residuals are calculated.
At each interation the correlation between the original residuals and the shuffle residuals is calculated
This vector os correlations is returned and plot it as histogram.
1 | nullDristribution(data, numReplicates)
|
data |
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. |
numReplicates |
the variable of interest to calculate Moran's I. |
Histogram and the vector of correlations between residuals
1 2 3 | inputFileName<-system.file("testdata", "chen.csv", package="Irescale")
input<-loadFile(inputFileName)
c<-nullDristribution(input,1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.