Placeholder canvas
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

From Bergen to Global: UiB’s System Dynamics Group

From Bergen to Global: UiB’s System Dynamics Group The System Dynamics Group, an autonomous research group at the University of Bergen (UiB) was established in 1971 by professor emeritus Svein Nordbotten. Inspired by the work of Jay W. Forrester, Nordbotten...

A Digital Twin Business Model in 40 Hours

A Digital Twin Business Model in 40 Hours Though long past the date when I should have ‘retired’, I just can’t resist interesting projects, like the one a new friend brought me a few weeks ago. It concerns a small but fast-growing B2B business,...

Upcoming Events

System Dynamics for Beginners – Hands-on Training

System Dynamics for Beginners – Hands-on Training

System Dynamics for Beginners – Hands-on Training The Nigerian Chapter of the System Dynamics Society is putting together some seminars to teach system dynamics to beginners across different walks of life. We started with System Dynamics Building Blocks for...

Recent Business cases

System Dynamics Helps Farmers Escape Poverty Trap in Guatemala

System Dynamics Helps Farmers Escape Poverty Trap in Guatemala EXECUTIVE Summary Guatemala holds the 4th highest global ranking for chronic malnutrition, and climate change is intensifying the challenges subsistence farmers face in providing food for their families....

Twinings Uses System Dynamics Games to Enhance HR Capability

Twinings Uses System Dynamics Games to Enhance HR Capability “Realistic simulation is a powerful approach to building capability. The business simulation developed [by Dashboard Simulations and Lane4] gave [Twinings staff] an experience that called for them to develop...

Join us