Skip to content
Prev 26729 / 29559 Next

[localmoran.exact]

On Mon, 13 Aug 2018, Lisa Menez wrote:

            
A complete reproducible example is required (script and data, data may be 
downloaded, do not attach). Does the same thing happen with 
localmoran.sad()?
Never, ever use @ to access data. EU_NUTS at data$NUTS_L1 should be 
EU_NUTS$NUTS_L1 and should be (made a) factor first. It isn't clear what 
log(EU_NUTS at data[,year[i]]) will end up being - is "year" a character 
vector? If so, EU_NUTS[[year[i]]] is the correct syntax.
No, as you can see from https://cran.r-project.org/package=spdep, the 
development site of spdep is https://github.com/r-spatial/spdep/. Never 
use non-authorised copies. To see the source, simply type the function 
name. Use debug(localmoran.exact) to step through the function while it 
runs, to see the values of the objects you are in doubt about. Do not do 
this in RStudio, its debugging interface tries to be far too clever.

The following is illegible in plain text; post in plain text only.

Roger