causal_testing.utils.validation

This module contains the CausalValidator class for performing Quantitive Bias Analysis techniques

Module Contents

Classes

CausalValidator

A suite of validation tools to perform Quantitive Bias Analysis to back up causal claims

class causal_testing.utils.validation.CausalValidator

A suite of validation tools to perform Quantitive Bias Analysis to back up causal claims

static estimate_robustness(model: statsmodels.regression.linear_model.RegressionResultsWrapper, q=1, alpha=1)

Calculate the robustness of a linear regression model. This allow the user to identify how large an unidentified confounding variable would need to be to nullify the causal relationship under test.

static estimate_e_value(risk_ratio: float) float

Calculate the E value from a risk ratio. This allow the user to identify how large a risk an unidentified confounding variable would need to be to nullify the causal relationship under test.

static estimate_e_value_using_ci(risk_ratio: float, confidence_intervals: tuple[float, float]) float

Calculate the E value from a risk ratio and it’s confidence intervals. This allow the user to identify how large a risk an unidentified confounding variable would need to be to nullify the causal relationship under test.