Skip to main content

PISA-style weighted least squares with BRR-Fay and plausible values.

Project description

pysa

pysa provides PISA-style weighted least squares (WLS) with BRR-Fay replicate weights and plausible values.

It is designed for analyses aligned with standard OECD/PISA practices:

  • full-sample student weights
  • 80 BRR–Fay replicate weights
  • plausible value combination using Rubin-style rules (sampling + imputation variance)

This package is intended for research and reproducible workflows using PISA-like datasets.


Features

  • Weighted least squares (WLS) using full-sample weights
  • BRR-Fay variance estimation using replicate weights
  • Plausible value (PV) combination
    • Averages coefficients across PVs
    • Combines sampling + between-PV variance into final standard errors
  • Flexible model specification:
    • numeric regressors (num_vars)
    • categorical regressors (cat_vars, one-hot encoded with drop_first=True)
    • fixed effects (fixed_effects, also one-hot encoded)
  • Optional country filtering
  • Clean results object: PysaResult

Installation

From PyPI

pip install pysa-pv

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

pysa_pv-0.1.7.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

pysa_pv-0.1.7-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pysa_pv-0.1.7.tar.gz.

File metadata

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

File hashes

Hashes for pysa_pv-0.1.7.tar.gz
Algorithm Hash digest
SHA256 0adbfaaaba1820e5e61a8e9d05fb2115a6b9a6694d69f748be60922f9e9a7800
MD5 50dd6858f72d4cb0a09e596560003961
BLAKE2b-256 913c4ddf9a2d85348e7fe39f60c7d66e952880b540eeedde009770309fbaf9b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysa_pv-0.1.7.tar.gz:

Publisher: python-publish.yml on filcivilini/Pysa

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

File details

Details for the file pysa_pv-0.1.7-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pysa_pv-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6d3ec33f58a6514a249e7d535c9d11c5e8ed88c3ca577072c29592d24e8fbcf0
MD5 2f8f4b9f9f7d0ceeb311e0c6df84b998
BLAKE2b-256 3013892a1487b780042a4682ad5d30154b6b7f89bce7b53b8ec66d692b4a1ae6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysa_pv-0.1.7-py3-none-any.whl:

Publisher: python-publish.yml on filcivilini/Pysa

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