# NOT RUN {
# Parameters and initial conditions.
pars_solvetc <- c(d = 1 / 6, f = 0.5, s = 0.2,
z = 0.2, r = 0.8)
init_solvetc <- c(n = 950, g = 50)
# Solve for point estimates.
solve_tc_pt <- SolveTC(pars = pars_solvetc,
init = init_solvetc,
time = 0:10, method = "rk4")
# Solve for parameter ranges.
solve_tc_rg <- SolveTC(pars = pars_solvetc,
init = init_solvetc,
time = 0:15,
f.range = seq(0, 1, 0.1),
s.range = c(0.05, 0.4),
z.range = c(0.05, 0.4),
method = "rk4")
# }
Run the code above in your browser using DataLab