riantr/moonbit_dowhy/model does not have a README file

    CausalEstimate

    pub struct CausalEstimate {
    value : Double
    treatment_name : String
    outcome_name : String
    target_estimand : String
    realized_estimand_expr : String
    control_value : Double
    treatment_value : Double
    propensity_scores : Array[Double]
    ci_lower : Double
    ci_upper : Double
    standard_error : Double
    p_value : Double
    conditional_estimates : Array[(String, Double)]
    params : Map[String, String]
    }

    The result of a causal estimation.

    This is the port of dowhy.causal_estimator.CausalEstimate.

    CausalEstimate::add_conditional_estimate

    fn CausalEstimate::add_conditional_estimate(self : CausalEstimate, key : String, value : Double) -> Unit

    Attach a conditional estimate.

    CausalEstimate::add_param

    fn CausalEstimate::add_param(self : CausalEstimate, key : String, value : String) -> Unit

    Attach a parameter to the estimate.

    CausalEstimate::confidence_interval_lower

    fn CausalEstimate::confidence_interval_lower(self : CausalEstimate) -> Double

    The lower bound of the confidence interval.

    CausalEstimate::confidence_interval_upper

    fn CausalEstimate::confidence_interval_upper(self : CausalEstimate) -> Double

    The upper bound of the confidence interval.

    CausalEstimate::estimate

    fn CausalEstimate::estimate(self : CausalEstimate) -> Double

    The point estimate.

    CausalEstimate::new

    fn CausalEstimate::new(value : Double, treatment_name : String, outcome_name : String, target_estimand : String, control_value : Double, treatment_value : Double) -> CausalEstimate

    An estimate without any interval information.

    CausalEstimate::p_value

    fn CausalEstimate::p_value(self : CausalEstimate) -> Double

    The p-value of the significance test.

    CausalEstimate::propensity_scores

    fn CausalEstimate::propensity_scores(self : CausalEstimate) -> Array[Double]

    The propensity scores the estimator computed.

    CausalEstimate::set_confidence_interval

    fn CausalEstimate::set_confidence_interval(self : CausalEstimate, lower : Double, upper : Double) -> Unit

    Set the confidence interval of the estimate.

    CausalEstimate::set_p_value

    fn CausalEstimate::set_p_value(self : CausalEstimate, p : Double) -> Unit

    Set the p-value of the estimate.

    CausalEstimate::set_propensity_scores

    fn CausalEstimate::set_propensity_scores(self : CausalEstimate, scores : Array[Double]) -> Unit

    Attach the propensity scores to the estimate.

    CausalEstimate::set_standard_error

    fn CausalEstimate::set_standard_error(self : CausalEstimate, se : Double) -> Unit

    Set the standard error of the estimate.

    CausalEstimate::standard_error

    fn CausalEstimate::standard_error(self : CausalEstimate) -> Double

    The standard error of the estimate.

    CausalEstimate::target_estimand

    fn CausalEstimate::target_estimand(self : CausalEstimate) -> String

    The estimand the estimate was computed for.

    CausalEstimate::to_string

    fn CausalEstimate::to_string(self : CausalEstimate) -> String

    A human readable summary of the estimate.

    Source Files

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io