Easily Build, Simulate, and Explore Stock-and-Flow Models


[Up] [Top]

Documentation for package ‘sdbuildR’ version 2.0.0

Help Pages

%REM% Remainder and modulus
as.data.frame.simulate_stockflow Create data frame of simulation results
as.data.frame.stockflow Convert stock-and-flow model to data frame
as.data.frame.verify_stockflow Convert verify() results to a data frame
aux Add or modify auxiliaries
auxiliary Add or modify auxiliaries
change_name Change name of variable
change_type Change variable type
clean_name Clean variable name(s)
compare_models Compare two stock-and-flow models
constant Add or modify constants
contains_IM Check whether value is in vector or string
custom_func Create or modify custom variables or functions
dependencies Find dependencies
discard Remove variable(s)
discard_unit_test Remove a unit test from a stock-and-flow model
ensemble Run ensemble simulations
expit Expit function
export_model Export a stock-and-flow model
export_plot Save plot to a file
flow Add or modify flows
has_internet Check if user has internet
head.simulate_stockflow Print first rows of a simulation
head.verify_stockflow Print first rows of verify results
hill Hill function
import_desolve Import a deSolve model
import_insightmaker Import Insight Maker model
indexof Find index of value in vector or string
insightmaker_to_json Convert .InsightMaker file to .json file
install_julia_env Install, update, or remove Julia environment
length_IM Length of vector or string
logistic Logistic function
logit Logit function
lookup Add or modify lookup variables (graphical functions)
meta Modify meta of stock-and-flow model
mod Remainder and modulus
nonnegative Check whether x is less than zero
plot.ensemble_stockflow Plot timeseries of ensemble simulation
plot.simulate_stockflow Plot timeseries of simulation
plot.stockflow Plot stock-and-flow diagram
plot.verify_stockflow Plot verify results
print.compare_stockflow Print comparison of two stock-and-flow models
print.simulate_stockflow Print simulation of a stock-and-flow model
print.stockflow Print overview of stock-and-flow model
print.summary_stockflow Print method for summary_stockflow
pulse Create pulse function
ramp Create ramp function
rbool Generate random logical value
rdist Generate random number from custom distribution
rem Remainder and modulus
round_IM Round values half-up (as in Insight Maker)
saveat_func Internal function to save data frame at specific times
seasonal Create a seasonal wave function
sigmoid Logistic function
simulate.stockflow Simulate stock-and-flow model
sim_methods Translate between deSolve and DifferentialEquations.jl solver names
sim_settings Modify simulation specifications
step Create step function
stock Add or modify stocks
stockflow Create a new stock-and-flow model
summary.simulate_stockflow Summarise simulation results
summary.stockflow Run model diagnostics
tail.simulate_stockflow Print last rows of a simulation
tail.verify_stockflow Print last rows of verify results
unit_test Add or modify unit tests
unit_tests Display unit tests defined on a stock-and-flow model
update.stockflow Create or modify variables
url_to_insightmaker Extract Insight Maker model from URL
use_julia Start Julia and activate environment
verify Verify model behavior with unit tests
verify.stockflow Verify unit tests against simulation results