Domain-Agnostic Causal Simulation Engine with Mixed Variable Types


[Up] [Top]

Documentation for package ‘lepidoptera’ version 0.1.2

Help Pages

add_dependency Add a dependency (edge set + mechanism) to a system
add_feature Add a feature to a system
compare Compare baseline and intervened populations
copula_mechanism Copula-based dependency mechanism
do_distribution Intervention: replace a feature's generative distribution
do_fix Intervention: fix a feature to a constant value
export_system Export a system to JSON or YAML
feature_spec Declare a feature
feature_types Valid feature types
finalize_system Finalize and validate a system
import_system Import a system from JSON or YAML
learned_mechanism Fit a mechanism directly from observed data
list_copula_families List available copula families
llm_mechanism A mechanism whose value is generated by an LLM call
mechanism_library_get Look up a pre-built mechanism factory from the library
mechanism_override Intervention: override a feature's mechanism entirely
model_mechanism Wrap a pre-fitted model as a generative mechanism
new_system Create an empty system
plot_graph Plot a system's dependency graph
propagate Apply interventions and propagate their effects
register_mechanism Register a custom mechanism
shift Intervention: shift the value a feature would otherwise take
simulate Simulate a population from a system