# NOT RUN {
# the values, variance and covariance of the location and scale parameters
# [a2,a2] describing mortality due to infection were estimated as;
# a2 = 2.5807642
# b2 = 0.1831328
# var_a2 = 0.0008196927
# var_b2 = 0.0010007282
# cov_a2b2 = -0.0003119921
ci_matrix01 <- conf_ints_virulence(
a2 = 2.5807642,
b2 = 0.1831328,
var_a2 = 0.0008196927,
var_b2 = 0.0010007282,
cov_a2b2 = -0.0003119921,
d2 = "Weibull",
tmax = 15)
tail(ci_matrix01)
plot(ci_matrix01[, 't'], ci_matrix01[, 'h2'],
type = 'l', col = 'red',
xlab = 'time', ylab = 'virulence (<U+00B1> 95% ci)')
lines(ci_matrix01[, 'lower_ci'], col = 'grey')
lines(ci_matrix01[, 'upper_ci'], col = 'grey')
# }
Run the code above in your browser using DataLab