Skip to contents

[Maturing] Estimate a log normal delay distribution from a vector of integer delays. Currently this function is a simple wrapper for bootstrapped_dist_fit().

Usage

estimate_delay(delays, ...)

Arguments

delays

Integer vector of delays

...

Arguments to pass to internal methods.

Value

A <dist_spec> summarising the bootstrapped distribution

Author

Sam Abbott

Examples

# \donttest{
delays <- rlnorm(500, log(5), 1)
estimate_delay(delays, samples = 1000, bootstraps = 10)
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> Warning: `samples` must be at least 1000. Now setting it to 1000 internally.
#> Warning: `backend` option will be ignored as a stan model object has been passed.
#> 
#>   Uncertain lognormal distribution with (untruncated) logmean 1.4 (SD 0.12) and logSD 1.1 (SD 0.081)
#> 
# }