Skip to main content

A package for weak instruments in an instrumental variables regression.

Project description

Solutions to Weak Instruments

Two stage least squares with instruments has become a common method for estimation. Issues can arise when there are many instruments and is compounded when there are many weak instruments. Problems also arise when treatment is clustered. Many methods have been proposed to handle these issues. In this file, we highlight some proposed solutions to many instruments bias and weak instruments bias, and run Monte Carlo simulations on a newly created Python package for handling many instruments bias.

JIVE1 and JIVE2 estimates based on

UJIVE1 and UJIVE2 estimates based on Angrist, Imbens, and Krueger (1999)

We use the following formula for estimation of JIVE1:

$[\frac{Z_i \hat{\pi} - h_i X_i}{1-h_i}]$

where $h_i$ is the leverage for observation $i$.

We use the following formula for estimation of JIVE2:

$[\frac{Z_i \hat{\pi} - h_i X_i}{1-(\frac{1}{N})}]$

Cluster Jive (CJIVE)

IJIVE

SJIVE

LIML

Two Stage Least Squares

Weak identification with many instruments (Mikushueva and Sun)

Lim et al.

Jacknife Anderson-Rubin tests for many weak IV inference

Lagrange Multiplier

HFUL

Each file should check for:

  • Multicollinearity
  • Perfect collinearity
  • Dimensions of variables (Single column of controls etc)
    • Check to see if dimensions are the same for all variables
  • Constant columns
  • Y and Z must be one dimensional vectors

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

weak_instruments-0.1.2.tar.gz (281.7 kB view details)

Uploaded Source

Built Distribution

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

weak_instruments-0.1.2-py3-none-any.whl (75.5 kB view details)

Uploaded Python 3

File details

Details for the file weak_instruments-0.1.2.tar.gz.

File metadata

  • Download URL: weak_instruments-0.1.2.tar.gz
  • Upload date:
  • Size: 281.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for weak_instruments-0.1.2.tar.gz
Algorithm Hash digest
SHA256 59d7d2941cf709c97c2f58cdaf8e0a5540c2b0c3a03c01d98a1c75a6d1339cfc
MD5 7325e336b7f30db66470cd8559c47da5
BLAKE2b-256 31d5656c672b0e7fe02a9a300049002d5286b4f4daa9ea778aa6f352cee62244

See more details on using hashes here.

File details

Details for the file weak_instruments-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for weak_instruments-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93a70d1f5f7c8abff3c3eefb04eab8ed161b9421f1712f06b410a8c248f96e57
MD5 90d93e181c205d84af52fa7848155417
BLAKE2b-256 633f6f742a07c655417fe930e4c0da16d243462c01c40d59574438d81919e561

See more details on using hashes here.

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