Python toolkit for Indonesian official microdata (SAKERNAS, SUSENAS)
Project description
StatsKita: Python toolkit for Indonesian official microdata (SAKERNAS, SUSENAS)
v0.3.0: SAKERNAS (labor) + SUSENAS (poverty/inequality)
What's Supported
| Dataset | Waves | Indicators |
|---|---|---|
| SAKERNAS | 5 (2023-02 → 2025-02) | Labor force, employment, wages |
| SUSENAS | 2 (2023-03, 2024-03) | Poverty (P0, P1, P2), Gini |
Installation
pip install statskita
Quick Start
Single wave:
import statskita as sk
# SAKERNAS
df = sk.load_sakernas(wave="2025-02")
clean_df = sk.wrangle(df, harmonize=True, source_wave="2025-02")
design = sk.declare_survey(clean_df, weight="survey_weight", psu="psu")
results = sk.calculate_indicators(design, ["unemployment_rate", "lfpr"])
# SUSENAS
df = sk.load_susenas(wave="2024-03", module="kp", category="housing")
design = sk.declare_survey(df, weight="WEIND", wave="2024-03")
results = sk.calculate_indicators(design, ["p0", "p1", "p2", "gini"])
Multi-wave comparison:
# SAKERNAS
sakernas_waves = {w: sk.load_sakernas(wave=w) for w in ["2023-02", "2023-08", "2024-02", "2025-02"]}
harmonized = {w: sk.wrangle(df, harmonize=True, source_wave=w) for w, df in sakernas_waves.items()}
sakernas_results = sk.calculate_indicators_multi(harmonized, "all", as_wide=True)
# SUSENAS
susenas_waves = {w: sk.load_susenas(wave=w, module="kp", category="housing") for w in ["2023-03", "2024-03"]}
susenas_results = sk.calculate_indicators_multi(susenas_waves, ["p0", "p1", "p2", "gini"], as_wide=True)
SAKERNAS output:
┌─────────────────────────────────┬──────┬─────────┬─────────┬─────────┬─────────┐
│ indicator ┆ unit ┆ 2023-02 ┆ 2023-08 ┆ 2024-02 ┆ 2025-02 │
├─────────────────────────────────┼──────┼─────────┼─────────┼─────────┼─────────┤
│ labor_force_participation_rate ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
│ employment_rate ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
│ unemployment_rate ┆ % ┆ 5.45 ┆ 5.32 ┆ 4.82 ┆ 4.76 │
│ underemployment_rate ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
│ female_lfpr ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
│ average_wage ┆ M Rp ┆ ... ┆ ... ┆ ... ┆ ... │
│ neet_rate ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
└─────────────────────────────────┴──────┴─────────┴─────────┴─────────┴─────────┘
SUSENAS output:
┌───────────┬──────┬─────────┬─────────┐
│ indicator ┆ unit ┆ 2023-03 ┆ 2024-03 │
├───────────┼──────┼─────────┼─────────┤
│ p0 ┆ ┆ 9.36 ┆ 9.03 │
│ p1 ┆ ┆ 1.53 ┆ 1.46 │
│ p2 ┆ ┆ 0.38 ┆ 0.35 │
│ gini ┆ ┆ 0.39 ┆ 0.38 │
└───────────┴──────┴─────────┴─────────┘
Features
- Multi-wave analysis: Built-in cross-wave comparison
- Survey-aware: Handles weights, strata, PSU correctly
- Open source: Free, no licensing costs
See examples/ for detailed usage.
Project details
Release history Release notifications | RSS feed
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 statskita-0.3.0.tar.gz.
File metadata
- Download URL: statskita-0.3.0.tar.gz
- Upload date:
- Size: 254.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b357b119194a732a9c29d906a5867e3ab6bc6761e6cdd8da5ec3f662bd2f5a9
|
|
| MD5 |
d54b313ac47f8aaca499b38e904d54b9
|
|
| BLAKE2b-256 |
de940e18d1067f7955333d8279b20ee0e7480ab43055c652882f25d684f595cb
|
Provenance
The following attestation bundles were made for statskita-0.3.0.tar.gz:
Publisher:
release.yml on okkymabruri/statskita
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
statskita-0.3.0.tar.gz -
Subject digest:
4b357b119194a732a9c29d906a5867e3ab6bc6761e6cdd8da5ec3f662bd2f5a9 - Sigstore transparency entry: 584130183
- Sigstore integration time:
-
Permalink:
okkymabruri/statskita@7baa5c3d6cd0d64e8327b15679998ed9323daf49 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/okkymabruri
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7baa5c3d6cd0d64e8327b15679998ed9323daf49 -
Trigger Event:
push
-
Statement type:
File details
Details for the file statskita-0.3.0-py3-none-any.whl.
File metadata
- Download URL: statskita-0.3.0-py3-none-any.whl
- Upload date:
- Size: 79.7 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 |
03ec9a1124dd066cdb5270f468f176be6507a23fcf6304ad90c71888e2e024f7
|
|
| MD5 |
0d624df56a4a717df7a526bb114e986a
|
|
| BLAKE2b-256 |
d849aec4e39397a085cd378558d3bcc9a41d98810b5c887a0bf5f9001365d594
|
Provenance
The following attestation bundles were made for statskita-0.3.0-py3-none-any.whl:
Publisher:
release.yml on okkymabruri/statskita
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
statskita-0.3.0-py3-none-any.whl -
Subject digest:
03ec9a1124dd066cdb5270f468f176be6507a23fcf6304ad90c71888e2e024f7 - Sigstore transparency entry: 584130185
- Sigstore integration time:
-
Permalink:
okkymabruri/statskita@7baa5c3d6cd0d64e8327b15679998ed9323daf49 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/okkymabruri
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7baa5c3d6cd0d64e8327b15679998ed9323daf49 -
Trigger Event:
push
-
Statement type: