riantr/moonbit_dowhy/graph does not have a README file
pub struct CausalGraph {
treatment_name : Array[String]
outcome_name : Array[String]
graph : DirectedGraph
observed : Map[String, Bool]
effect_modifiers : Array[String]
}fn CausalGraph::add_missing_nodes_as_common_causes(self : CausalGraph, observed_node_names : Array[String]) -> DirectedGraphfn CausalGraph::check_dseparation(self : CausalGraph, nodes1 : Array[String], nodes2 : Array[String], nodes3 : Array[String], new_graph : DirectedGraph?) -> Boolfn CausalGraph::check_valid_backdoor_set(self : CausalGraph, nodes1 : Array[String], nodes2 : Array[String], nodes3 : Array[String], new_graph : DirectedGraph?) -> Boolfn CausalGraph::check_valid_frontdoor_set(self : CausalGraph, nodes1 : Array[String], nodes2 : Array[String], candidate_nodes : Array[String], frontdoor_paths : Array[Array[String]], new_graph : DirectedGraph?) -> Boolfn CausalGraph::check_valid_mediation_set(self : CausalGraph, nodes1 : Array[String], nodes2 : Array[String], candidate_nodes : Array[String], mediation_paths : Array[Array[String]]) -> Boolfn CausalGraph::do_surgery(self : CausalGraph, node_names : Array[String], remove_outgoing_edges : Bool, remove_incoming_edges : Bool, target_node_names : Array[String], remove_only_direct_edges_to_target : Bool) -> DirectedGraphfn CausalGraph::get_all_directed_paths(self : CausalGraph, nodes1 : Array[String], nodes2 : Array[String]) -> Array[Array[String]]fn CausalGraph::get_common_causes(self : CausalGraph, nodes1 : Array[String], nodes2 : Array[String]) -> Array[String]fn CausalGraph::get_effect_modifiers(self : CausalGraph, nodes1 : Array[String], nodes2 : Array[String]) -> Array[String]fn CausalGraph::get_instruments(self : CausalGraph, treatment_nodes : Array[String], outcome_nodes : Array[String]) -> Array[String]fn CausalGraph::has_directed_path(self : CausalGraph, action_nodes : Array[String], outcome_nodes : Array[String]) -> Boolfn CausalGraph::new(treatment_name : Array[String], outcome_name : Array[String], graph : DirectedGraph?, common_cause_names : Array[String], instrument_names : Array[String], effect_modifier_names : Array[String], mediator_names : Array[String], observed_node_names : Array[String]) -> CausalGraphfn DirectedGraph::all_simple_paths(self : DirectedGraph, from : String, to : String) -> Array[Array[String]]fn DirectedGraph::all_simple_paths_undirected(self : DirectedGraph, from : String, to : String) -> Array[Array[String]]fn DirectedGraph::node_connected_subgraph_view(self : DirectedGraph, name : String) -> DirectedGraphfn d_separated(graph : DirectedGraph, x : Array[String], y : Array[String], z : Array[String]) -> Boolfn do_surgery(graph : DirectedGraph, node_names : Array[String], remove_outgoing_edges : Bool, remove_incoming_edges : Bool, target_node_names : Array[String], remove_only_direct_edges_to_target : Bool) -> DirectedGraphfn get_all_directed_paths(graph : DirectedGraph, nodes1 : Array[String], nodes2 : Array[String]) -> Array[Array[String]]fn get_backdoor_paths(graph : DirectedGraph, nodes1 : Array[String], nodes2 : Array[String]) -> Array[Array[String]]fn get_instruments(graph : DirectedGraph, treatment_nodes : Array[String], outcome_nodes : Array[String]) -> Array[String]fn get_proper_backdoor_graph(graph : DirectedGraph, action_nodes : Array[String], outcome_nodes : Array[String]) -> DirectedGraphfn get_proper_causal_path_nodes(graph : DirectedGraph, action_nodes : Array[String], outcome_nodes : Array[String]) -> Set[String]fn has_directed_path(graph : DirectedGraph, action_nodes : Array[String], outcome_nodes : Array[String]) -> Boolfn is_blocked(graph : DirectedGraph, path : Array[String], conditioned_nodes : Array[String]) -> BoolInstall
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, the what-if queries (the interventional samples, the counterfactual samples and the average causal effect), the validation layer (the kernel based conditional independence test, the validation of a causal structure and the validation of an invertible model) and the falsification layer (the local Markov condition, the pairwise dependencies, the parental d-separations, the causal minimality and the permutation test of a graph) and the model evaluation layer (the normalised mean squared error, the continuous ranked probability score, the performance of the causal mechanisms, the test of the invertibility assumption and the report of the evaluation) and the distribution change layer (the test of the change of a mechanism, the attribution of the change of the distribution of a target node and the scores of the change of the distribution of every node). Pure MoonBit with zero external runtime dependencies.