README.md

simplan

Goals:

  1. A straightforward YAML-based "recipe" for simulation, called in a simplan.
  2. An R-package for automatically creating the R script based on the simplan.
  3. R package for building a simplan through functions.
  4. R package for elliciting distributions.

Next Steps

  1. Build shiny app prototype for UI to build a simplan.
  2. Create a bake/unbake/serve schema for the simplan pipeline.
  3. Create a scaffold of rule-checking functions for controlling simplan creation.
plan <- read_simplan(file = 'inst/test_seq.yml')
print_file <- "test2.R"
translate_to_rscript(plan, print_file)
# Run the script
plot_nodes_raw_base(plan = plan, facet = FALSE)
library(simplan)
plan <- read_simplan('inst/test_seq.yml')
plan <- bake_plan(plan)

plan <- add_node(
  plan = plan,
  name = "zambda",
  type = "SIMPLE",
  distribution = "normal",
  parameters = list(mean = 0, sd = 1),
  sequence_parameters = NULL,
  contortion = NULL,
  initials = NULL
)
plan <- bake_plan(plan)
plan <- unbake_plan(plan)
plan <- bake_plan(plan)

Visualising

plan <- read_simplan(file = 'inst/test_seq.yml')
plan <- bake_plan(plan)

plot_simulation_DAG(plan)

plan_viz <- visualise_node_network(plan)
visNetwork::visHierarchicalLayout(
  plan_viz,
  sortMethod = "directed",
  direction = "LR")


danwkenn/simplan documentation built on May 25, 2022, 8:30 p.m.