Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify on "transitions" style step functions #31

Open
3 tasks
pearsonca opened this issue Apr 14, 2023 · 0 comments
Open
3 tasks

Unify on "transitions" style step functions #31

pearsonca opened this issue Apr 14, 2023 · 0 comments
Labels
content concerning course material
Milestone

Comments

@pearsonca
Copy link
Contributor

pearsonca commented Apr 14, 2023

Tasks:

  • update contribution guidance @pearsonca
  • all instructors: review and normalize their material
  • intro materials: highlight this persective

Overview: Some implementations look like:

SI_open_model <- function(times, state, parms) {
  ## ... get out variables / params
  # Define differential equations
  dS <- -(beta * S * I) / N
  dI <- (beta * S * I) / N - gamma * I
  dR <- gamma * I
  return(list(c(dS, dI, dR)))
}

while others do

SI_open_model <- function(times, state, parms) {
  ## ... get out variables / params
  # Define transition rates
  infection <- (beta * S * I) / N
  recovery <- gamma * I
  return(list(c(dS = -infection, dI = infection - recovery, dR = recovery)))
}

In general, the "transitions" style should be preferred.

@pearsonca pearsonca added this to the MTM 2024 milestone Apr 14, 2023
@pearsonca pearsonca added the content concerning course material label Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content concerning course material
Projects
None yet
Development

No branches or pull requests

1 participant