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 withdrop_first=True) - fixed effects (
fixed_effects, also one-hot encoded)
- numeric regressors (
- Optional country filtering
- Clean results object:
PysaResult
Installation
From PyPI
pip install pysa-pv
Metadata
Release files for pysa-pv 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysa_pv-1.0.1.tar.gz | 13.0 kB | With provenance | Details for pysa_pv-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysa_pv-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pysa_pv-1.0.1-py3-none-any.whl |
Total release size: 27.0 kB
Release files / pysa_pv-1.0.1.tar.gz
| Download URL | pysa_pv-1.0.1.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fbab58a4f6804bd1d7fd42e162af18813847b9b40a8fe821d18518e381287cd
|
|
BLAKE2b-256 checksum How to use checksums |
c8e4153937fb24060a64d330134ec0f1e4b3bc3ab2680edb0ccefa326a8bb489
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 14, 2026.
Transparency logRelease files / pysa_pv-1.0.1-py3-none-any.whl
| Download URL | pysa_pv-1.0.1-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35e9b674c30f8fb629d22b71cbe6d9cc7afa85646a9758d731b6b004f360203f
|
|
BLAKE2b-256 checksum How to use checksums |
b573bd552dba10d4f7c8644a7d7e5dfb87649e22c13c849743f6d55a14f17da9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 14, 2026.
Transparency logSecurity for pysa-pv 1.0.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.
Attestation for pysa_pv-1.0.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 Feb 14, 2026.
Transparency logA 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.