lisa_fdr: Get False Discovery Rate value of local spatial...

Description Usage Arguments Value Examples

View source: R/lisa.R

Description

Get False Discovery Rate value based on current LISA computation and current significat p-value

Usage

1
lisa_fdr(gda_lisa, current_p)

Arguments

gda_lisa

An instance of LISA object

current_p

A value of current siginificant p-value

Value

A value of False Discovery Rate

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
queen_w <- queen_weights(guerry)
guerry_df <- as.data.frame(guerry) # use as data.frame
crm_prs <- guerry_df['Crm_prs'][,1] # get values of variable "crm_prs"
lisa <- local_moran(queen_w, crm_prs)
fdr <- lisa_fdr(lisa, 0.05)
fdr

## End(Not run)

lixun910/rgeoda documentation built on March 19, 2021, 3:49 p.m.