# Multivariate Quantile LISA

Multivariate Quantile LISA ([2019](https://geodacenter.github.io/workbook/6d_local_discrete/lab6d.html#ref-Anselin:19b)) is a type of local spatial autocorrelation that applies multivariate local join count statistics to quantiles of multiple continuous variables. For each continuous variable,  it is converted to a binary variable that takes the value of 1 for a specific quantile. For more information, please read [https://geodacenter.github.io/workbook/6d\_local\_discrete/lab6d.html#quantile-lisa](https://geodacenter.github.io/workbook/6d_local_discrete/lab6d.html#multivariate-quantile-lisa)

## multiQuantileLisa()

```sql
function multiQuantileLisa(
    WeightResult w,
    Array ks,
    Array quantiles,
    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                                                      |
| ks                   | Array          | The array of integer numbers that specify quantiles for each variable                                      |
| quantiles            | Array          | The array of integer numbers that specify which quantile is used for each variable                         |
| vals                 | Array          | an array of 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* |

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

{% embed url="<https://codesandbox.io/s/6lisamultivariate-4w3hk>" %}
