# NOT RUN {
# Parameters and initial conditions.
pars_solve_si = c(b = 0.245, d = 0.101,
k = 98050, s = 0.048)
init_solve_si = c(n = 89137, q = 0.198)
# Solve for a specific sterilization rate.
solve_si_pt = SolveSI(pars = pars_solve_si,
init = init_solve_si,
time = 0:15, dd = "b",
im = 100, method = "rk4")
# Solve for a range of sterilization rates.
solve_si_rg = SolveSI(pars = pars_solve_si,
init = init_solve_si,
time = 0:15, dd = "b", im = 100,
s.range = seq(0, .4, l = 50),
method = "rk4")
# }
Run the code above in your browser using DataLab