cleverly.datasets.make_heterogeneous#
- cleverly.datasets.make_heterogeneous(n: int = 1000, *, seed: int | Generator | None = None, slope: float = 1.5, backend: Literal['pandas', 'polars'] | str | None = None) tuple[Any, dict[str, float]][source]#
A sample whose treated and control populations have genuinely different effects.
Use this wherever a test needs
att,ateandatcto be distinguishable and ordered in a known direction –att > ate > atc– rather than merely unequal.- Parameters:
- Returns: