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.6.tar.gz (5.7 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.6-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysa_pv-0.1.6.tar.gz
  • Upload date:
  • Size: 5.7 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.6.tar.gz
Algorithm Hash digest
SHA256 5d8c826f1c5513baabc1a9cf975186a54766a73a82b25c6879864470f9aeacee
MD5 40872cb1e89a738d96eaecdc43fc7e60
BLAKE2b-256 744cd7a4db92c4b92fc05fc97f0c99c3399018d025631cfd4a28758f8dabd848

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysa_pv-0.1.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: pysa_pv-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b40abbd6a9844e8b9331a41061cc5bd62561277e50a6dffb966e8a7b28516a8b
MD5 1682e3a83353e8e6761829c70779d9b5
BLAKE2b-256 5857fe60e91e9bd6fbfcb40d90a0fbe25c522b609b8c9637b9beb2efb9ccbe2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysa_pv-0.1.6-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