Skip to main content

Fit spatial multilevel models and diagnose convergence

Project description

https://travis-ci.org/pysal/spvcm.svg?branch=master https://zenodo.org/badge/79168765.svg

This is a package to 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. For a complete overview, consult the walkthrough.

author: Levi John Wolf

email: levi.john.wolf@gmail.com

institution: University of Bristol & University of Chicago Center for Spatial Data Science

preprint: on the Open Science Framework

Installation

This package works best in Python 3.5, but unittests pass in Python 2.7 as well. Only Python 3.5+ is officially supported.

To install, first install the Anaconda Python Distribution from Continuum Analytics. Installation of the package has been tested in Windows (10, 8, 7) Mac OSX (10.8+) and Linux using Anaconda 4.2.0, with Python version 3.5.

Once Anaconda is installed, spvcm can be installed using pip, the Python Package Manager.

pip install spvcm

To install this from source, one can also navigate to the source directory and use:

pip install ./

which will install the package from the target source directory.

Usage

To use the package, start up a Python interpreter and run: import spvcm.api as spvcm

Then, many differnet variance components model specificaions are available in:

spvcm.both spvcm.upper spvcm.lower

For more thorough directions, consult the Jupyter Notebook, using the sampler.ipynb, which is provided in the spvcm/examples directory.

Citation

Levi John Wolf. (2016). Gibbs Sampling for a class of spatially-correlated variance components models. University of Chicago Center for Spatial Data Science Technical Report.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spvcm-0.3.0.tar.gz (5.7 MB view details)

Uploaded Source

File details

Details for the file spvcm-0.3.0.tar.gz.

File metadata

  • Download URL: spvcm-0.3.0.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for spvcm-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ce331bd5d6bcb64a07c4393093f3978763cfc8764ad0737e1866f3905e6cceae
MD5 a2484be90598000eea5a5c499a684240
BLAKE2b-256 b4c943fb98bc60728b76fceee175119a1ff7e5033ed9012d07570e34a2a19a8f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page