Skip to main content

Package to implement the multi-level SC estimator

Project description

Multi-level Synthetic Control Estimator

PyPI Tests Changelog License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multi_levelsc-0.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multi_levelsc-0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for multi_levelsc-0.1.tar.gz
Algorithm Hash digest
SHA256 d69d7c472b2347e68d61cb49ba10acd9febced49902d175fb7eb9703f4d8b064
MD5 b17c87b0f42fc9c8e934ff08d883b9d1
BLAKE2b-256 82ac26099315563cf7b6ac94746fe3f8f763a83a98463058cbb5127b2b67fefb

See more details on using hashes here.

Provenance

The following attestation bundles were made for multi_levelsc-0.1.tar.gz:

Publisher: publish.yml on leabottmer/multi-level-sc-estimator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for multi_levelsc-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f3279fd7fc168f8958757af9985bcc6646cff9f2be8b8dfbcbf07634fc198e8
MD5 6a853f07b25bc213109424bfc096a2f5
BLAKE2b-256 11663b9ae8741f3cf5a28076f3a74e2d85dad4ab6abe5204e9dada88e1625775

See more details on using hashes here.

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

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