riantr/moonbit_dowhy/refuters does not have a README file
pub struct CausalRefutation {
estimated_effect : Double
new_effect : Double
new_effect_lower : Double
new_effect_upper : Double
refutation_type : String
p_value : Double
is_significant : Bool
}fn CausalRefutation::new(estimated_effect : Double, new_effect : Double, refutation_type : String) -> CausalRefutationpub enum ConfoundersEffectOnT {
BinaryFlip
Linear
}pub enum ConfoundersEffectOnY {
BinaryFlip
Linear
}pub struct EValueSensitivityAnalyzer {
estimate : Double
standard_error : Double
treatment_delta : Double
outcome_sd : Double
stats : EValueStats
benchmarking : Array[ObservedCovariateEValue]
}fn EValueSensitivityAnalyzer::benchmarking(self : EValueSensitivityAnalyzer) -> Array[ObservedCovariateEValue]pub struct EValueStats {
converted_estimate : Double
converted_lower_ci : Double?
converted_upper_ci : Double?
evalue_estimate : Double
evalue_lower_ci : Double?
evalue_upper_ci : Double?
}pub struct GraphRefutation {
method_name_discrete : String
method_name_continuous : String
number_of_constraints_model : Int
number_of_constraints_satisfied : Int
refutation_result : Bool?
results : Map[String, IndependenceTest]
}pub struct GraphRefuter {
data : DataFrame
method_name_discrete : String
method_name_continuous : String
false_implications : Array[Implication]
true_implications : Array[Implication]
results : Map[String, IndependenceTest]
}fn GraphRefuter::new(data : DataFrame, method_name_discrete : String, method_name_continuous : String) -> GraphRefuterfn GraphRefuter::refute_model(self : GraphRefuter, constraints : Array[Implication]) -> GraphRefutationpub struct IndependenceTest {
value : Double?
holds : Bool?
}pub struct IndependenceTests {
test_for_continuous : String
test_for_discrete : String
}fn IndependenceTests::new(test_for_continuous : String, test_for_discrete : String) -> IndependenceTestspub struct LinearSensitivityAnalyzer {
estimate : Double
standard_error : Double
degree_of_freedom : Int
t_statistic : Double
r2yt_w : Double
partial_f2 : Double
robustness_value : Double
robustness_value_alpha : Double
confounder_increases_estimate : Bool
null_hypothesis_effect : Double
significance_level : Double
r2tu_w : Array[Double]
r2yu_tw : Array[Double]
bias_adjusted_estimate : Array[Double]
bias_adjusted_se : Array[Double]
bias_adjusted_t : Array[Double]
bias_adjusted_lower_ci : Array[Double]
bias_adjusted_upper_ci : Array[Double]
}fn LinearSensitivityAnalyzer::bias_adjusted_estimate(self : LinearSensitivityAnalyzer) -> Array[Double]fn LinearSensitivityAnalyzer::bias_adjusted_lower_ci(self : LinearSensitivityAnalyzer) -> Array[Double]fn LinearSensitivityAnalyzer::bias_adjusted_upper_ci(self : LinearSensitivityAnalyzer) -> Array[Double]fn LinearSensitivityAnalyzer::confounder_increases_estimate(self : LinearSensitivityAnalyzer) -> Boolpub struct ObservedCovariateEValue {
covariate : String
converted_estimate : Double
converted_lower_ci : Double?
converted_upper_ci : Double?
evalue : Double
}pub enum PlaceboType {
RandomData
Permute
}pub enum SignificanceTestType {
Auto
Bootstrap
Normal
}fn Transformation::estimate(model : (DataFrame, Array[Double], DataFrame) -> (Array[Double], Array[Double])) -> Transformationpub enum VariableKind {
Continuous
Discrete
Binary
}fn compute_bias_adjusted(analyzer : LinearSensitivityAnalyzer, r2tu_w : Array[Double], r2yu_tw : Array[Double]) -> BiasAdjustedTermsfn evalue_md(estimate : Double, standard_error : Double?, no_effect_baseline? : Double) -> EValueStatsfn evalue_ols(estimate : Double, standard_error : Double, outcome_sd : Double, treatment_delta : Double, no_effect_baseline? : Double) -> EValueStatsfn evalue_or(estimate : Double, lower : Double?, upper : Double?, rare : Bool, no_effect_baseline? : Double) -> EValueStatsfn evalue_rr(estimate : Double, lower : Double?, upper : Double?, no_effect_baseline? : Double) -> EValueStatsfn evalue_sensitivity_analyzer(estimator : CausalEstimator, data : DataFrame, outcome_name : String, target_units? : String) -> EValueSensitivityAnalyzerfn infer_default_kappa_t(data : DataFrame, estimand : IdentifiedEstimand, treatment_name : String, effect_on_t : ConfoundersEffectOnT, frac_strength_treatment : Double, len_kappa_t : Int) -> Array[Double]fn infer_default_kappa_y(data : DataFrame, estimand : IdentifiedEstimand, outcome_name : String, effect_on_y : ConfoundersEffectOnY, frac_strength_outcome : Double, len_kappa_y : Int) -> Array[Double]fn linear_sensitivity_analyzer(estimator : CausalEstimator, data : DataFrame, treatment_name : String, benchmark_common_causes : Array[String], frac_strength_treatment : Array[Double], frac_strength_outcome : Array[Double]?, percent_change_estimate : Double, significance_level : Double, confounder_increases_estimate? : Bool) -> LinearSensitivityAnalyzerfn observed_covariate_e_value(ci : Double, new_ci : Double) -> Doublefn refute_add_unobserved_common_cause(estimator : CausalEstimator, estimand : IdentifiedEstimand, data : DataFrame, treatment_name : String, outcome_name : String, kappa_t : Double, kappa_y : Double, treatment_value : Double, control_value : Double, target_units : String, random : Random, effect_on_t? : ConfoundersEffectOnT, effect_on_y? : ConfoundersEffectOnY) -> CausalRefutationfn refute_bootstrap(estimator : CausalEstimator, estimand : IdentifiedEstimand, data : DataFrame, num_simulations : Int, sample_size_fraction : Double, treatment_value : Double, control_value : Double, target_units : String, random : Random, required_variables? : RequiredVariables, noise? : Double, probability_of_change? : Double?) -> CausalRefutationfn refute_data_subset(estimator : CausalEstimator, estimand : IdentifiedEstimand, data : DataFrame, subset_fraction : Double, num_simulations : Int, treatment_value : Double, control_value : Double, target_units : String, random : Random) -> CausalRefutationfn refute_dummy_outcome(estimator : CausalEstimator, estimand : IdentifiedEstimand, data : DataFrame, outcome_name : String, treatment_name : String, num_simulations : Int, treatment_value : Double, control_value : Double, target_units : String, random : Random, required_variables? : RequiredVariables, transformations? : Array[Transformation], min_data_point_threshold? : Int, bucket_size_scale_factor? : Double, test_fraction? : Double, true_causal_effect? : (Array[Double]) -> Array[Double]?) -> Array[CausalRefutation]fn refute_placebo_treatment(estimator : CausalEstimator, estimand : IdentifiedEstimand, data : DataFrame, treatment_name : String, num_simulations : Int, treatment_value : Double, control_value : Double, target_units : String, random : Random, placebo_type? : PlaceboType) -> CausalRefutationfn refute_random_common_cause(estimator : CausalEstimator, _estimand : IdentifiedEstimand, data : DataFrame, num_simulations : Int, treatment_value : Double, control_value : Double, target_units : String, random : Random) -> CausalRefutationfn test_significance(estimate : Double, simulations : Array[Double], test_type? : SignificanceTestType, significance_level? : Double) -> (Double, Bool)Install
Download zipMoonBit port of DoWhy 0.14 (PyWhy): causal graph construction, effect identification, effect estimation, refutation, intervention sampling, temporal graphs, causal discovery with the PC algorithm, and the portable core of the graphical causal models. Pure MoonBit with zero external runtime dependencies.