Skip to content
Submodule
causalis.dgp.panel_data_did.base

base

Submodule causalis.dgp.panel_data_did.base with no child pages and 32 documented members.

Classes

Jump directly into the documented classes for this page.

2 items
class
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig

PanelDIDGeneratorConfig

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.n_treated_units

n_treated_units

Value: 20

20

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.n_treated_units

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.n_control_units

n_control_units

Value: 60

60

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.n_control_units

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.n_pre_periods

n_pre_periods

Value: 24

24

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.n_pre_periods

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.n_post_periods

n_post_periods

Value: 12

12

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.n_post_periods

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.time_start

time_start

Value: 1

1

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.time_start

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.time_freq

time_freq

Value: 'M'

‘M’

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.time_freq

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.calendar_start

calendar_start

Value: '2021-01'

‘2021-01’

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.calendar_start

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treated_prefix

treated_prefix

Value: 'treated_market_'

‘treated_market_’

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treated_prefix

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.control_prefix

control_prefix

Value: 'control_market_'

‘control_market_’

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.control_prefix

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.random_state

random_state

Value: 42

42

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.random_state

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.return_panel_data

return_panel_data

Value: True

True

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.return_panel_data

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.outcome_distribution

outcome_distribution

Value: 'gaussian'

‘gaussian’

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.outcome_distribution

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.gamma_shape

gamma_shape

Value: 9.0

9.0

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.gamma_shape

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.exposure_log_mean

exposure_log_mean

Value: 7.1

7.1

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.exposure_log_mean

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.exposure_log_std

exposure_log_std

Value: 0.45

0.45

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.exposure_log_std

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treated_selection_shift

treated_selection_shift

Value: 0.12

0.12

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treated_selection_shift

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.common_factor_std_log

common_factor_std_log

Value: 0.05

0.05

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.common_factor_std_log

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.unit_noise_std_log

unit_noise_std_log

Value: 0.07

0.07

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.unit_noise_std_log

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.outcome_noise_std_log

outcome_noise_std_log

Value: 0.06

0.06

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.outcome_noise_std_log

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.gaussian_noise_std

gaussian_noise_std

Value: 90.0

90.0

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.gaussian_noise_std

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.rho_common

rho_common

Value: 0.45

0.45

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.rho_common

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.rho_unit

rho_unit

Value: 0.35

0.35

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.rho_unit

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.seasonality_strength

seasonality_strength

Value: 0.16

0.16

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.seasonality_strength

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.parallel_trend_violation

parallel_trend_violation

Value: 0.0

0.0

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.parallel_trend_violation

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treatment_effect_rate

treatment_effect_rate

Value: 0.08

0.08

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treatment_effect_rate

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treatment_effect_slope

treatment_effect_slope

Value: 0.0

0.0

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treatment_effect_slope

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treatment_effect_heterogeneity_std

treatment_effect_heterogeneity_std

Value: 0.025

0.025

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGeneratorConfig.treatment_effect_heterogeneity_std

Link to this symbol
class
causalis.dgp.panel_data_did.base.PanelDIDGenerator

PanelDIDGenerator

Low-level generator for realistic simultaneous-adoption DID panels.

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGenerator

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGenerator.covariate_cols

covariate_cols

Value: ('exposure', 'avg_order_value', 'market_competition', 'macro_index', 'seasonality_index')

(‘exposure’, ‘avg_order_value’, ‘market_competition’, ‘macro_index’, ‘seasonality_index’)

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGenerator.covariate_cols

Link to this symbol
attribute
causalis.dgp.panel_data_did.base.PanelDIDGenerator.cluster_col

cluster_col

Value: 'region'

‘region’

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGenerator.cluster_col

Link to this symbol
method
causalis.dgp.panel_data_did.base.PanelDIDGenerator.generate

generate

Canonical target

causalis.dgp.panel_data_did.base.PanelDIDGenerator.generate

Link to this symbol