Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I just need help writing a general code in R that could solve the following system of ODE's as a function of time. I

Hi, I just need help writing a general code in R that could solve the following system of ODE's as a function of time. I will put in the values and such later, I mainly need help with the general set up and structure of how the code should be written in R. Again, I just need a basic set up, so I will put in the values later. I just need to see how it should be done in R. Thanks!

Consider a population aggregated by age into M groups ( i = 1,2,,M). The population, within age group i, is comprised of the following classes, susceptible S_i , asymptomatic infectious Ia_i, symptomatic infectious Is_i, and recovered R_i individuals. The governing equations are:

image text in transcribed

such that

image text in transcribed

Si = -lit)Si, in = ali(t) S-710 yl, i =li(t)S-71, R; = (1+1). I (t) = ii Nj + C ij Nj 1,3 = 1,... j=1 Si = -lit)Si, in = ali(t) S-710 yl, i =li(t)S-71, R; = (1+1). I (t) = ii Nj + C ij Nj 1,3 = 1,... j=1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions