riantr/moonbit_dowhy/estimators does not have a README file
pub struct CausalEstimator {
target_estimand : IdentifiedEstimand
kind : EstimatorKind
weighting_scheme : WeightingScheme
min_ps_score : Double
max_ps_score : Double
num_strata : Int
clipping_threshold : Int
instrument_name : String
rd_variable_name : String
rd_threshold_value : Double
rd_bandwidth : Double
rd_local_data : DataFrame?
model : OlsFit
glm_model : GlmFit
glm_family : GlmFamily
encoders : Encoders
features : Array[String]
propensities : Array[Double]
propensity_beta : Array[Double]
adjustment_names : Array[String]
effect_modifier_names : Array[String]
treatment_name : String
outcome_name : String
treatment_value : Double
control_value : Double
confidence_level : Double
num_simulations : Int
sample_size_fraction : Double
compute_confidence_intervals : Bool
test_significance : Bool
}fn CausalEstimator::doubly_robust(estimand : IdentifiedEstimand, min_ps_score : Double, max_ps_score : Double) -> CausalEstimatorfn CausalEstimator::estimate_effect(self : CausalEstimator, data : DataFrame, treatment_value : Double, control_value : Double, target_units : String) -> CausalEstimatefn CausalEstimator::fit(self : CausalEstimator, data : DataFrame, effect_modifier_names : Array[String]) -> Unitfn CausalEstimator::generalized_linear_model(estimand : IdentifiedEstimand, family : GlmFamily) -> CausalEstimatorfn CausalEstimator::instrumental_variable(estimand : IdentifiedEstimand, instrument_name : String) -> CausalEstimatorfn CausalEstimator::propensity_score_stratification(estimand : IdentifiedEstimand, num_strata : Int, clipping_threshold : Int) -> CausalEstimatorfn CausalEstimator::propensity_score_weighting(estimand : IdentifiedEstimand, min_ps_score : Double, max_ps_score : Double, scheme : WeightingScheme) -> CausalEstimatorfn CausalEstimator::regression_discontinuity(estimand : IdentifiedEstimand, rd_variable_name : String, rd_threshold_value : Double, rd_bandwidth : Double) -> CausalEstimatorfn CausalEstimator::set_compute_confidence_intervals(self : CausalEstimator, compute : Bool) -> Unitfn CausalEstimator::with_estimand(self : CausalEstimator, estimand : IdentifiedEstimand) -> CausalEstimatorpub enum EstimatorKind {
LinearRegression
PropensityScoreWeighting
PropensityScoreMatching
PropensityScoreStratification
DoublyRobust
InstrumentalVariable
TwoStageRegression
RegressionDiscontinuity
GeneralizedLinearModel
}pub enum WeightingScheme {
IpsWeight
IpsStabilizedWeight
IpsNormalizedWeight
}let DEFAULT_NUMBER_OF_SIMULATIONS_CI : Intlet DEFAULT_NUMBER_OF_SIMULATIONS_STAT_TEST : Intlet NUM_QUANTILES_TO_DISCRETIZE_CONT_COLS : IntInstall
Download zipMoonBit port of DoWhy 0.14 (PyWhy). Causal graph construction and analysis, effect identification (backdoor / frontdoor / complete adjustment), estimation (linear regression, generalized linear model, propensity score weighting / matching / stratification, doubly robust, instrumental variable, two stage, regression discontinuity), refutation (bootstrap, placebo treatment, data subset, dummy outcome, unobserved common cause), intervention sampling (do samplers), temporal graphs, causal discovery (the PC algorithm with the Fisher-z test) and the portable core of the graphical causal models (the p-value merging, the bootstrap confidence intervals, the Kullback-Leibler divergences, the density estimators, the Shapley values, the independence tests, the prediction models, the causal mechanisms, the fitting of a causal model and the what-if queries (the interventional samples, the counterfactual samples and the average causal effect). Pure MoonBit with zero external runtime dependencies.