Description Usage Arguments Value Examples
View source: R/stochasticmodel_1country.R
This function gives a stochastic realization for a given parameter and initial condition.
1 | stochasticmodel_1country(theta, inp)
|
theta |
parameter |
inp |
is a list include duration : number of days and ini: initial compartments of the country |
The average realization of the country during the period
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run: ## Initial Condition
P1 = 10^7
I1 = 250
A1 = 130
S1 = P1 - I1 - A1
x1 = c(S1,I1,A1,0,0,0)#
days= 84
inp = list(duration =days, ini = x1)
k= 1
theta0 = as.numeric(thetas_3travel[[k]][1:6])
stochasticmodel_1country(theta0,inp)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.