Skip to main content

IV Models

Project description

Instrumental Variables Regression in Python

ivmodels implements

  • K-Class estimators, including the Limited Information Maximum Likelihood (LIML) and the Two-Stage Least Squares (TSLS) estimator.
  • Tests and confidence sets for the parameters of the model, including the Anderson-Rubin test, the Lagrange multiplier test, the (conditional) likelihood-ratio test, and the Wald test.
  • Auxiliary tests such as Anderson's (1951) test of reduced rank (a multivariate extension to the first-stage F-test) and the J-test (including its LIML variant).

See the docs and the examples therein for more details.

If you use this code, consider citing

@article{londschien2024weak,
  title={Weak-instrument-robust subvector inference in instrumental variables regression: A subvector Lagrange multiplier test and properties of subvector Anderson-Rubin confidence sets},
  author={Londschien, Malte and B{\"u}hlmann, Peter},
  journal={arXiv preprint arXiv:2407.15256},
  year={2024}
}

Installation

You can install ivmodels from conda (recommended):

conda install -c conda-forge ivmodels

or pip:

pip install ivmodels

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

ivmodels-0.9.0.tar.gz (82.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ivmodels-0.9.0-py3-none-any.whl (55.1 kB view details)

Uploaded Python 3

File details

Details for the file ivmodels-0.9.0.tar.gz.

File metadata

  • Download URL: ivmodels-0.9.0.tar.gz
  • Upload date:
  • Size: 82.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ivmodels-0.9.0.tar.gz
Algorithm Hash digest
SHA256 1ee9a86d4e7224d03b52bebfcae24fb7fedcc63e06284de1ab74fee3319071f1
MD5 9ec941d317db8bfa3d7fb4175e86b545
BLAKE2b-256 33e5d6c47a17e817c788f34bcc47b2e8a4b26f7a2cb55f9f3bb56acabdf7fc12

See more details on using hashes here.

Provenance

The following attestation bundles were made for ivmodels-0.9.0.tar.gz:

Publisher: build.yaml on mlondschien/ivmodels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ivmodels-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: ivmodels-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 55.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ivmodels-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcf94d318a3b3febc9d76da0a5ac834aa702debb50a7349459d90d77f7cc34c9
MD5 e55cc1c926952b83b824e6c290f8a62a
BLAKE2b-256 68071335c452306a4844bad88a9be916ee57822af5090765611693869bebfdcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ivmodels-0.9.0-py3-none-any.whl:

Publisher: build.yaml on mlondschien/ivmodels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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