Multivariate Local Geary

Multivariate local geary (2019) is a multivariate extension of local geary which measures the extent to which neighbors in multiattribute space are also neighbors in geographical space. For more information, please read: https://geodacenter.github.io/workbook/6c_local_multi/lab6c.html

localMultiGeary()

function localMultiGeary(
    WeightResult w,
    Array vals,
    Number permutations, 
    String permutation_method,
    NUmber significance_cutoff, 
    Number seed)

Arguments

Name

Type

Description

w

WeightResult

the WeightResult object created from weights function

vals

Array

an array of the numeric columns that contains the values for LISA statistics

permutations

Number

the number of permutations for the LISA computation. Default: 999.

permutation_method

String

the permutation method used for the LISA computation. Options are 'complete', 'lookup'. Default: 'lookup'.

significance_cutoff

Number

the cutoff value for significance p-values to filter not-significant clusters. Default: 0.05.

seed

Number

the seed for random number generator used in LISA statistics. Default: 123456789.

Return

Type

Description

LisaResult

The LisaResult object contains the results of LISA computation: pvalues, clusters, lisa_values, neighbors, labels, colors

Examples

const jsgeoda = require('jsgeoda');
const fs = require('fs');

// load data
const data = fs.readFileSync('./data/natregimes.geojson').buffer;

// create jsgeoda instance
const geoda = await jsgeoda.New();

// load geojson in jsgeoda
const nat = geoda.readGeoJSON(data);

// create a queen contiguity weights
const w = geoda.getQueenWeights(nat);

// get HR60 values
const hr60 = geoda.getColumn(nat, "HR60");
const ue60 = geoda.getColumn(nat, "UE60");
        
// multivariate local geary statistics 
const lm = geoda.localMultiGeary(w, [hr60, ue60]);

Try it yourself in the playground (jsgeoda + deck.gl):

Last updated