> Every page of the ganymede website is listed in https://eugo.io/docs/ganymede/llms.txt.

# Gibbs sampling for spatially-correlated variance-components (spvcm)

> Gibbs sampling for spatially-correlated variance-components (spvcm): Estimate spatially-correlated variance components models/varying intercept models.

Web page: https://eugo.io/docs/ganymede/demo_notebooks/geospatial/pysal/spvcm/
Notebook: https://eugo.io/docs/ganymede/demo_notebooks/geospatial/pysal/spvcm/spvcm.ipynb (source: https://github.com/eugo-inc/ganymede/blob/main/demo_notebooks/geospatial/pysal/spvcm.ipynb)

Description:
- Estimate spatially-correlated variance components models/varying intercept models. In addition to a general toolkit to conduct Gibbs sampling in Python, the package also provides an interface to PyMC3 and CODA.

Resources:
- [GitHub] https://github.com/pysal/spvcm
- [Examples] https://github.com/pysal/spvcm/tree/master/notebooks

## Example 1

See all of the possible combinations of Spatial Moving Average and Spatial Error processes

```python
import spvcm as spvcm

spvcm.both_levels.Generic # abstract customizable class, ignores rho/lambda, equivalent to MVCM
spvcm.both_levels.MVCM # no spatial effect
spvcm.both_levels.SESE #  both spatial error (SE)
spvcm.both_levels.SESMA # response-level SE, region-level spatial moving average
spvcm.both_levels.SMASE # response-level SMA, region-level SE
spvcm.both_levels.SMASMA # both levels SMA
spvcm.upper_level.Upper_SE # response-level uncorrelated, region-level SE
spvcm.upper_level.Upper_SMA # response-level uncorrelated, region-level SMA
spvcm.lower_level.Lower_SE # response-level SE, region-level uncorrelated
spvcm.lower_level.Lower_SMA # response-level SMA, region-level uncorrelated ]
```
