Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages

Go Home

Webinar Highlights & Recording: System Dynamics Modeling with R.

by | Apr 21, 2023

System Dynamics is a powerful approach to understanding complex systems in various fields, such as public health, ecology, and economics. Prof. Jim Duggan, an expert in applying System Dynamics and data science methods to public health, recently hosted a webinar on System Dynamics Modeling with R. In this session, Prof. Duggan provided insights into R’s capabilities for data analysis, visualization, and manipulation, as well as building and running Ordinary Differential Equation (ODE) models. Additionally, he discussed using R’s Shiny framework for creating interactive web apps and the prospect of forming a joint digital science tools group for R and Python users.

Exploring R’s Capabilities

Prof. Duggan showcased R’s potential by introducing packages such as ggplot2 and dplyr for data manipulation and visualization, deSolve for building models, and Tidyverse for data analysis. Moreover, he demonstrated creating interactive web apps using the Shiny package.

Visualizing Data with ggplot2 and GGCloud2

Ggplot2, a library from the Tidyverse, enables users to create graphs in R. Prof. Duggan demonstrated creating scatter plots with different visual properties, such as color, using the ggplot function with specific arguments. He also highlighted GGCloud2 as a flexible visualization tool that adds a fourth dimension to a plot using the facetwrap function.

Tidying Data in R

Prof. Duggan emphasized the importance of tidying data for easier processing in R. He showcased the use of pivot_longer for converting wide data into a tidy data format and dplyr as a powerful package for summarizing data. Techniques like grouping, summarizing, and data transformation can be performed using Tidyverse tools.

Building and Running ODE Models

R can be used to build and run ODE models, as Prof. Duggan demonstrated by defining stocks using vectors and generating models automatically with the deSolve package. He also discussed how Markov Chain Monte Carlo (MCMC) can be used to calibrate data using System Dynamics models, helping to find parameters from a dataset.

Interactive Web Apps with Shiny

Shiny, R’s framework for creating interactive web apps, was another key focus of the webinar. Prof. Duggan explained how Shiny’s reactive programming automatically updates outputs based on input changes, requiring minimal HTML, CSS, and JavaScript knowledge. The server function links inputs to outputs and generates new graphs based on input changes.

Conclusion

Prof. Jim Duggan’s webinar on System Dynamics Modeling with R provided valuable insights into the capabilities of R for data analysis, visualization, manipulation, and ODE model building. The session was an excellent resource for those interested in exploring R’s applications in System Dynamics and data science.

Watch the recording for more!

Watch the recording below

Whoops, this recording is available for members and ticket purchasers only. Please login to verify. If you’re not a member, purchase a membership here. You can also buy a ticket to watch the recording here.

About the Speakers

Prof. Jim Duggan’s research focus is the area of applying System Dynamics and data science methods to public health. This includes using System Dynamics to support pandemic preparedness and response, modeling scenarios of infectious disease outbreaks and applying agile software design methods to develop a safety planning mobile app to address suicidality in young people attending community mental health services in Ireland. Prof. Duggan is a Managing Editor for the System Dynamics Review and a member of the World Health Organisation’s Global Outbreak and Response Network (GOARN).

Recent Posts

Society Governance Updates

Society Governance Updates Welcome, Allyson! New President Allyson Beall King joined the Policy Council as our 2024 President. Her primary role is as director of the Washington State University School of the Environment, which focuses on regional ecologies and our...

Call for Presenters: Seminar Series

Call for Presenters: Seminar Series We at the System Dynamics Society are continually seeking vibrant and knowledgeable presenters for our ongoing Seminar Series. As we unfold the calendar, there’s always a place for more insights, experiences, and expertise to enrich...

Upcoming Events

SA Chapter SD Learning Lab

New to system dynamics? Want to learn in a controlled, but competitive environment? Join the South African Chapter in our SD Learning Lab Journey. In session 1 and 2 (Event 1) we build a case study model together. The purpose of the case study model is for you to...

Recent Business cases

A Design Value Calculator: A System Dynamics Boardgame

A Design Value Calculator: A System Dynamics Boardgame EXECUTIVE Summary Product design is a specific form of complex innovation that touches all areas of an organization’s management. While entrepreneurs recognise the value of design, they often tend to focus...

Join us