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 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0adbfaaaba1820e5e61a8e9d05fb2115a6b9a6694d69f748be60922f9e9a7800
|
|
| MD5 |
50dd6858f72d4cb0a09e596560003961
|
|
| BLAKE2b-256 |
913c4ddf9a2d85348e7fe39f60c7d66e952880b540eeedde009770309fbaf9b7
|
Provenance
The following attestation bundles were made for pysa_pv-0.1.7.tar.gz:
Publisher:
python-publish.yml on filcivilini/Pysa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysa_pv-0.1.7.tar.gz -
Subject digest:
0adbfaaaba1820e5e61a8e9d05fb2115a6b9a6694d69f748be60922f9e9a7800 - Sigstore transparency entry: 756775612
- Sigstore integration time:
-
Permalink:
filcivilini/Pysa@3ea801e9614a1f6c57290d98ab362e0995d3ba36 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/filcivilini
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3ea801e9614a1f6c57290d98ab362e0995d3ba36 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d3ec33f58a6514a249e7d535c9d11c5e8ed88c3ca577072c29592d24e8fbcf0
|
|
| MD5 |
2f8f4b9f9f7d0ceeb311e0c6df84b998
|
|
| BLAKE2b-256 |
3013892a1487b780042a4682ad5d30154b6b7f89bce7b53b8ec66d692b4a1ae6
|
Provenance
The following attestation bundles were made for pysa_pv-0.1.7-py3-none-any.whl:
Publisher:
python-publish.yml on filcivilini/Pysa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysa_pv-0.1.7-py3-none-any.whl -
Subject digest:
6d3ec33f58a6514a249e7d535c9d11c5e8ed88c3ca577072c29592d24e8fbcf0 - Sigstore transparency entry: 756775642
- Sigstore integration time:
-
Permalink:
filcivilini/Pysa@3ea801e9614a1f6c57290d98ab362e0995d3ba36 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/filcivilini
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3ea801e9614a1f6c57290d98ab362e0995d3ba36 -
Trigger Event:
push
-
Statement type: