Package to implement the multi-level SC estimator
Project description
Multi-level Synthetic Control Estimator
This package implements the multi-level SC estimator (mlSC) for the treatment effect for a single, treated, aggregated unit in panel data with multiple levels of aggregation, as proposed in Bottmer (2025).
This package is currently in beta and the functionality and interface is subject to change.
Installation
Install this library using pip:
pip install multi-level-sc-estimator
Example
from multi_level_sc_estimator.mlSC import mlSC_estimator
# Define data sets, treated unit, treated period, population weights (w_c) and how to estimate lambda.
mlSC_results = mlSC_estimator(data_s,data_c, idx, n_c, t, w_c, lambda_est = "heuristic")
tau_hat = mlSC_results[0]
lambda_hat = mlSC_results[1]
w_hat = mlSC_results[2]
References
Lea Bottmer. Synthetic Control with Disaggregated Data, 2025. [link]
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 multi_levelsc-0.1.tar.gz.
File metadata
- Download URL: multi_levelsc-0.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d69d7c472b2347e68d61cb49ba10acd9febced49902d175fb7eb9703f4d8b064
|
|
| MD5 |
b17c87b0f42fc9c8e934ff08d883b9d1
|
|
| BLAKE2b-256 |
82ac26099315563cf7b6ac94746fe3f8f763a83a98463058cbb5127b2b67fefb
|
Provenance
The following attestation bundles were made for multi_levelsc-0.1.tar.gz:
Publisher:
publish.yml on leabottmer/multi-level-sc-estimator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
multi_levelsc-0.1.tar.gz -
Subject digest:
d69d7c472b2347e68d61cb49ba10acd9febced49902d175fb7eb9703f4d8b064 - Sigstore transparency entry: 697699693
- Sigstore integration time:
-
Permalink:
leabottmer/multi-level-sc-estimator@6c06e019eb1496344a44415507497f0f3c7daac6 -
Branch / Tag:
refs/tags/v1 - Owner: https://github.com/leabottmer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c06e019eb1496344a44415507497f0f3c7daac6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file multi_levelsc-0.1-py3-none-any.whl.
File metadata
- Download URL: multi_levelsc-0.1-py3-none-any.whl
- Upload date:
- Size: 10.1 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 |
0f3279fd7fc168f8958757af9985bcc6646cff9f2be8b8dfbcbf07634fc198e8
|
|
| MD5 |
6a853f07b25bc213109424bfc096a2f5
|
|
| BLAKE2b-256 |
11663b9ae8741f3cf5a28076f3a74e2d85dad4ab6abe5204e9dada88e1625775
|
Provenance
The following attestation bundles were made for multi_levelsc-0.1-py3-none-any.whl:
Publisher:
publish.yml on leabottmer/multi-level-sc-estimator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
multi_levelsc-0.1-py3-none-any.whl -
Subject digest:
0f3279fd7fc168f8958757af9985bcc6646cff9f2be8b8dfbcbf07634fc198e8 - Sigstore transparency entry: 697699745
- Sigstore integration time:
-
Permalink:
leabottmer/multi-level-sc-estimator@6c06e019eb1496344a44415507497f0f3c7daac6 -
Branch / Tag:
refs/tags/v1 - Owner: https://github.com/leabottmer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c06e019eb1496344a44415507497f0f3c7daac6 -
Trigger Event:
release
-
Statement type: