Skip to main content

Microimpute

Microimpute is a Python package for imputing variables from one survey dataset onto another. It wraps five imputation methods behind a common interface so you can benchmark them on your data and pick the one that works best, rather than defaulting to a single approach.

Methods

  • Statistical Matching: distance-based matching to find similar donor observations
  • Ordinary Least Squares (OLS): linear regression imputation
  • Quantile Regression: models conditional quantiles instead of the conditional mean
  • Quantile Regression Forests (QRF): non-parametric, tree-based quantile estimation
  • Mixture Density Networks (MDN): neural network with a Gaussian mixture output

Autoimpute

The autoimpute function tunes hyperparameters, runs cross-validation across all five methods, and selects the best performer based on quantile loss (for numerical targets) or log loss (for categorical targets). It handles numerical, categorical, and boolean variables.

API

All models follow a fit() / predict() interface. The package supports sample weights to account for survey design, and validates inputs automatically. Adding a custom imputation method is straightforward since new models just need to implement the same interface.

Documentation and paper

  • Documentation with examples and interactive notebooks
  • Paper presenting microimpute and demonstrating it for SCF-to-CPS net worth imputation

Dashboard

An interactive dashboard for exploring imputation results is available at https://microimpute-dashboard.vercel.app/. It supports file upload, URL loading, direct GitHub artifact integration, and sample data.

Installation

pip install microimpute

For image export (PNG/JPG):

pip install microimpute[images]

Contributing

Pull requests are welcome. If you find a bug or have a feature idea, open an issue or submit a PR.

Metadata

Release files for microimpute 3.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for microimpute 3.2.1
File Size Uploaded Provenance Actions
microimpute-3.2.1.tar.gz 157.3 kB With provenance Details for microimpute-3.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for microimpute 3.2.1
File Interpreter ABI Platform Actions
microimpute-3.2.1-py3-none-any.whl Python 3 none any Details for microimpute-3.2.1-py3-none-any.whl

Total release size: 286.7 kB

Release files / microimpute-3.2.1.tar.gz

Download URL microimpute-3.2.1.tar.gz
Size 157.3 kB
Tags Source
SHA-256 checksum
How to use checksums
963a8e769093155d644a4387d62677642eed9fada2ec85f4afef7601da461ae5
BLAKE2b-256 checksum
How to use checksums
f5a451f4468cd04f8b3d6b8e819a90f4cce722a56cb366b1216c5ce965bd2149
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / microimpute-3.2.1-py3-none-any.whl

Download URL microimpute-3.2.1-py3-none-any.whl
Size 129.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8a5a74efd521fc12dc30273c3eb7f851e8aeffcefcb8ef9a3f6c507389d4307
BLAKE2b-256 checksum
How to use checksums
f7b1687232151cfbdafadc4fe22c29c83a4c2eb8aa605c3569a19ead0a4dba99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for microimpute 3.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for microimpute-3.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.2.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page