get_true_local_effects
rdd.simulate.get_true_local_effects(
qs: ArrayLike = MEDIAN,
*,
alpha: float = 2.5,
sigma_1: float = 1.0,
sigma_d: float = 1.0,
n_oracle: int = 1000000,
seed: int | None = None,
)Compute the complier quantile effects and LATE of the simulated design.
The running variable is independent of the disturbances, so at the cutoff the complier potential outcomes are Y(0) = eps_0 and Y(1) = eps_0 - eps_1 for units with 0 < eps_D + eps_1 <= alpha. A large oracle sample approximates their quantiles and mean difference.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| qs | array_like |
Quantiles in (0, 1) at which to compute the true effect. |
0.5 |
| alpha | float |
Treatment-cost reduction at the cutoff. | 2.5 |
| sigma_1 | float |
Standard deviation of the treatment-effect disturbance. | 1.0 |
| sigma_d | float |
Standard deviation of the treatment-selection disturbance. | 1.0 |
| n_oracle | int |
Size of the oracle sample. | 1_000_000 |
| seed | int |
Seed for numpy.random.default_rng. |
None |
Returns
| Name | Type | Description |
|---|---|---|
| tuple of polars.DataFrame and float | The true quantile effects and the true local average treatment effect. |