API ReferenceEntry

make_cuped_binary_26

make_cuped_binary_26

Reference details for make_cuped_binary_26 in causalis.data_contracts.

make_cuped_binary_26

Binary CUPED benchmark with richer confounders and structured HTE. Includes a calibrated pre-period covariate 'y_pre' by default. Wrapper for generate_cuped_binary().

Parameters
  • n (int) – Number of samples to generate.
  • seed (int) – Random seed.
  • add_pre (bool) – Whether to add a pre-period covariate 'y_pre'.
  • pre_name (str) – Name of the pre-period covariate column.
  • pre_target_corr (float) – Target correlation between y_pre and post-outcome y in the control group.
  • pre_spec (PreCorrSpec) – Detailed specification for pre-period calibration (transform, method, etc.).
  • include_oracle (bool) – Whether to include oracle columns like 'cate', 'g0', and 'g1'.
  • return_causal_data (bool) – Whether to return a CausalData object.
  • theta_logit (float) – Baseline log-odds uplift scale for heterogeneous treatment effects.
Returns