Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrapped_dist_fit example produces warnings about too many samples #725

Closed
sbfnk opened this issue Jul 17, 2024 · 0 comments · Fixed by #751
Closed

bootstrapped_dist_fit example produces warnings about too many samples #725

sbfnk opened this issue Jul 17, 2024 · 0 comments · Fixed by #751
Assignees

Comments

@sbfnk
Copy link
Contributor

sbfnk commented Jul 17, 2024

Summary:
It uses 10 bootstrap iterations with 1000 samples resulting in 100 each which yields a warning (instead this should have 1000 each).

Reproducible Steps:

library("EpiNow2")
#> 
#> Attaching package: 'EpiNow2'
#> The following object is masked from 'package:stats':
#> 
#>     Gamma

delays <- rlnorm(500, log(5), 1)
out <- bootstrapped_dist_fit(delays,
  samples = 1000, bootstraps = 10,
  dist = "lognormal"
)
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.
#> Warning in EpiNow2::dist_fit(values, samples = samples, dist = dist): `samples`
#> must be at least 1000. Now setting it to 1000 internally.

Created on 2024-07-17 with reprex v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants