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

Return

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