SEIRAH solve function
1 2 3 4 5 6 7 8 9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Set parameter values
b<-1
r<-1
alpha<-1
De<-5.2
Di<-2.3
Dq<-2
Dh<-30
popSize<-10000000
dailyMove<-0
init<-c(9999467, 346, 80, 0, 80, 27)
t<-seq(0,365)
par <- c(1.75, 0.41, alpha, De, Di, Dq, Dh, popSize, dailyMove,30,30,0,3000000)
# Solve system using lsoda
sol <- seirah_solve(init, t, par)
plot(sol)
# Plot solution
plot(sol$time,sol$I,ylim=c(0,100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.