quantile(ebola_incubation, p = 0.5)
#> [1] 8.224347
generate(ebola_incubation, times = 10)
-#> [1] 0.2043956 8.5305463 11.6768496 1.9978910 13.2885969 14.6660484
-#> [7] 17.6231451 4.4941493 19.2487076 7.5612139
+#> [1] 15.462278 4.319597 14.864370 2.369793 21.906653 13.081694 13.175768
+#> [8] 16.045752 14.161657 1.614554
diff --git a/articles/extract_convert.html b/articles/extract_convert.html
index e13d97eef..ccd1add5f 100644
--- a/articles/extract_convert.html
+++ b/articles/extract_convert.html
@@ -408,7 +408,7 @@
+#> 3.358198 1.284187
In the above example we estimate parameters of the gamma distribution, but extraction is also implemented for the lognormal, normal and Weibull distributions, but specifying "lnorm"
, "norm"
or "weibull"
.
A message is shown when running extract_param()
to make the user aware that the estimates are not completely reliable due to the use of numerical optimisation. Rerunning the function to and finding the same parameters are returned indicates that they have successfully converged. This issue is mostly overcome by the internal setup of the extract_param()
function which searches for convergence to consistent parameter estimates before returning these to the user.
The alternative extraction, by median and range, can be achieved by specifying type = "range"
and using the samples
argument instead of the percentiles
argument. When using type = "percentiles"
the samples
argument is ignored and when using type = "range"
the percentiles
argument is ignored.
@@ -422,7 +422,7 @@