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.8.tar.gz (8.8 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.8-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysa_pv-0.1.8.tar.gz
  • Upload date:
  • Size: 8.8 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.8.tar.gz
Algorithm Hash digest
SHA256 d8b1f9dfc22316bbe81e4956f39cb1a78d9442b4531c9dc62431aa26557271d0
MD5 656b385feca8620aff9d1a295b381247
BLAKE2b-256 86a09bd09077a5b532db6955d26d508d50486b319125b5236e690b9990ff824b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pysa_pv-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9d80e2ce1a166934750acc319932a226227688301d4bb488ad565e4734497ef6
MD5 4b34da8a9dc548425b170ff5b54c79a1
BLAKE2b-256 bb8decd3cacb39b70c0dfb6f065561c1b9ae08efb3986b82a87daa42cd9bd40f

See more details on using hashes here.

Provenance

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