cleverly.datasets.make_multi_arm#
- cleverly.datasets.make_multi_arm(n: int = 1000, *, seed: int | Generator | None = None, backend: Literal['pandas', 'polars'] | str | None = None, family: str = 'gaussian') tuple[Any, dict[str, float]][source]#
A three-armed confounded process with known counterfactual means.
family="binomial"gives the binary-outcome version, which is whatrrandor– and the E-value built on them – need on a multi-valued treatment.- Parameters:
- n
int Number of observations.
- seed
int,Generator,orNone Seed or NumPy random generator.
- backend{“pandas”, “polars”, “pyarrow”}
orNone, default=None Dataframe backend.
Noneuses pandas when installed, then the first available backend.- family{“gaussian”, “binomial”}
Outcome family of the generated outcome.
- n
- Returns: