Package: readsdr 0.3.0.9001

readsdr: Translate Models from System Dynamics Software into 'R'

The goal of 'readsdr' is to bridge the design capabilities from specialised System Dynamics software with the powerful numerical tools offered by 'R' libraries. The package accomplishes this goal by parsing 'XMILE' files ('Vensim' and 'Stella') models into 'R' objects to construct networks (graph theory); 'ODE' functions for 'Stan'; and inputs to simulate via 'deSolve' as described in Duggan (2016) <doi:10.1007/978-3-319-34043-2>.

Authors:Jair Andrade [aut, cre]

readsdr_0.3.0.9001.tar.gz
readsdr_0.3.0.9001.zip(r-4.5)readsdr_0.3.0.9001.zip(r-4.4)readsdr_0.3.0.9001.zip(r-4.3)
readsdr_0.3.0.9001.tgz(r-4.4-any)readsdr_0.3.0.9001.tgz(r-4.3-any)
readsdr_0.3.0.9001.tar.gz(r-4.5-noble)readsdr_0.3.0.9001.tar.gz(r-4.4-noble)
readsdr_0.3.0.9001.tgz(r-4.4-emscripten)readsdr_0.3.0.9001.tgz(r-4.3-emscripten)
readsdr.pdf |readsdr.html
readsdr/json (API)
NEWS

# Install 'readsdr' in R:
install.packages('readsdr', repos = c('https://jandraor.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jandraor/readsdr/issues

Datasets:
  • Maryland - Influenza in Maryland during the 1918 pandemic

On CRAN:

stansystem-dynamics

31 exports 16 stars 2.39 score 29 dependencies 61 scripts 247 downloads

Last updated 4 months agofrom:5cba7ef2d9. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 23 2024
R-4.5-winOKAug 23 2024
R-4.5-linuxOKAug 23 2024
R-4.4-winOKAug 23 2024
R-4.4-macOKAug 23 2024
R-4.3-winOKAug 23 2024
R-4.3-macOKAug 23 2024

Exports:%>%create_stan_functionexpitextract_timeseries_stockextract_timeseries_varinvlogitread_xmilesd_Bayessd_conf_intervalssd_constantssd_data_generator_funsd_fixed_delaysd_impact_inputssd_interpret_estimatessd_loglik_funsd_measurementssd_net_changesd_posterior_funsd_priorsd_prior_checkssd_pulse_ssd_pulse_trainsd_pulse_vsd_sensitivity_runsd_simulatesd_stockssd_what_if_from_timestan_ode_functiontimestepxmile_to_deSolve

Dependencies:clicodetoolsdeSolvedigestdplyrfansifuturefuture.applygenericsglobalsgluelifecyclelistenvmagrittrparallellypillarpkgconfigprogressrpurrrR6rlangstringistringrtibbletidyselectutf8vctrswithrxml2

Introduction to readsdr

Rendered fromIntroduction_to_readsdr.Rmdusingknitr::rmarkdownon Aug 23 2024.

Last update: 2024-04-05
Started: 2020-04-06

Readme and manuals

Help Manual

Help pageTopics
Create a Stan's ODE function from an XMILE filecreate_stan_function
Expit transformationexpit
Extract the values over time of a stock from a Stan fitextract_timeseries_stock
Extract the values over time of a variable from a Stan fitextract_timeseries_var
Inverse of a numberinv
Logit transformationlogit
Influenza in Maryland during the 1918 pandemicMaryland
Read an XMILE file into Rread_xmile
Create Stan file for Bayesian inferencesd_Bayes
Calculate confidence intervalssd_conf_intervals
Summarise the information of a model's constants in a data framesd_constants
Function factory for SBCsd_data_generator_fun
Fixed delaysd_fixed_delay
Construct inputs for performing structural analysis via the impact methodsd_impact_inputs
Interpret estimatessd_interpret_estimates
Generate a log-likelihood function for an SD modelsd_loglik_fun
Generate measurementssd_measurements
Estimate the net change of a stock in discrete timessd_net_change
Posterior functionsd_posterior_fun
Specify priors for the estimated parameters.sd_prior
Prior predictive checkssd_prior_checks
Replicate the behaviour of the PULSE function from Stellasd_pulse_s
PULSE TRAINsd_pulse_train
Replicate the behaviour of the PULSE function from Vensimsd_pulse_v
Perform a sensitivity run on a System Dynamics modelsd_sensitivity_run
Simulate a System Dynamics modelsd_simulate
Summarise the information of a model's stocks in a data framesd_stocks
What if from time t we change the value of some parameterssd_what_if_from_time
Create Stan ODE functionstan_ode_function
Parse XMILE to deSolve componentsxmile_to_deSolve