Skip to main content

Library meant to analyse Large Scale Assessments in Education

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-1.0.1.tar.gz (13.0 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-1.0.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pysa_pv-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2fbab58a4f6804bd1d7fd42e162af18813847b9b40a8fe821d18518e381287cd
MD5 bd79fcb96df36a374cd2ea6ea19240b3
BLAKE2b-256 c8e4153937fb24060a64d330134ec0f1e4b3bc3ab2680edb0ccefa326a8bb489

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pysa_pv-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35e9b674c30f8fb629d22b71cbe6d9cc7afa85646a9758d731b6b004f360203f
MD5 4cc58052f544367f0267a8fc59bd3b0a
BLAKE2b-256 b573bd552dba10d4f7c8644a7d7e5dfb87649e22c13c849743f6d55a14f17da9

See more details on using hashes here.

Provenance

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