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-levelSC

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.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.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file multi_levelsc-0.1.1.tar.gz.

File metadata

  • Download URL: multi_levelsc-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e095a969a7849c22d7b7197602e6a45146d291555011c5856f00fc71ad7d58ed
MD5 0539e6ff1196441c164e939980f1bac3
BLAKE2b-256 6664d98495047fe66f903ca7268833f636b113ed43bc2d54ff02d47bb2ae7db8

See more details on using hashes here.

Provenance

The following attestation bundles were made for multi_levelsc-0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: multi_levelsc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56fe5dcad91f11c7e0266fb685b97799009158c432030c0301a3c3b5fbc7ea1c
MD5 e484ec68bd9835d581a5385f89c87cb7
BLAKE2b-256 d2169804d1f5b5eeba5b1bb51b32153063923f4ea302b2f21e96a708c2a984ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for multi_levelsc-0.1.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