Learn R Programming

rgeoda (version 0.1.0)

lisa_pvalues: Get pseudo-p values of LISA

Description

Get the local pseudo-p values of significance returned from LISA computation.

Usage

lisa_pvalues(gda_lisa)

Value

A numeric vector of pseudo-p values of local spatial autocorrelation

Arguments

gda_lisa

An instance of LISA object

Examples

Run this code
if (FALSE) {
library(sf)
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
queen_w <- queen_weights(guerry)
lisa <- local_moran(queen_w, guerry["Crm_prs"])
pvals <- lisa_pvalues(lisa)
pvals
}

Run the code above in your browser using DataLab