causalis.scenarios.classic_rct.model.DiffInMeansDiffInMeans
Difference-in-means model for CausalData. Wraps common RCT inference methods: t-test, bootstrap, and conversion z-test.
Python Docs
causalis
Package entry
causalisRoot package overview and namespace mapNamespaces
causalis.scenarios.classic_rct.modelSubmodule causalis.scenarios.classic_rct.model with no child pages and 4 documented members.
Classes
Jump directly into the documented classes for this page.
causalis.scenarios.classic_rct.model.DiffInMeansDifference-in-means model for CausalData. Wraps common RCT inference methods: t-test, bootstrap, and conversion z-test.
causalis.scenarios.classic_rct.model.DiffInMeans.fitFit the model by storing the CausalData object.
Parameters
The CausalData object containing treatment and outcome variables.
Returns
The fitted model.
Canonical target
causalis.scenarios.classic_rct.model.DiffInMeans.fit
Sections
causalis.scenarios.classic_rct.model.DiffInMeans.estimateCompute the treatment effect using the specified method.
Parameters
The inference method to use. - “ttest”: Standard independent two-sample t-test. - “bootstrap”: Bootstrap-based inference for difference in means. - “conversion_ztest”: Two-proportion z-test for binary outcomes.
The significance level for calculating confidence intervals.
Whether to include diagnostic data_contracts in the result.
Additional arguments passed to the underlying inference function. - For “bootstrap”: can pass n_simul, batch_size, seed, index_dtype.
Returns
A results object containing effect estimates and inference.
Canonical target
causalis.scenarios.classic_rct.model.DiffInMeans.estimate
Sections
causalis.scenarios.classic_rct.model.DiffInMeans.__repr__