Wider applications of {epiparameter} extraction #319
Replies: 3 comments 11 replies
-
That looks good! Very out of the loop with things at the moment so maybe this has already been discussed but I wonder if densities/distributions/quantiles/random generation functions could be an output from epiparameter? # Get prior for R based on Aditama et al, PLOS ONE, 2012
get_prior <- extract_param(
type = "percentiles",
values = c(0.009, 0.315),
distribution = "gamma",
percentiles = c(0.025,0.975)
)
h5_prior_r <- function(x){dgamma(x,shape = get_prior[["shape"]], scale = get_prior[["scale"]])} could become
I'm not sure though. Maybe this would be too opaque? |
Beta Was this translation helpful? Give feedback.
-
@adamkucharski thanks for posting, I like the idea of having a post showcasing examples of where the conversion and extraction functions can help users for specific tasks. We'd need a list of examples and it might be a fair amount of work to search the literature for cases. I'd be happy to collaborate on the post. |
Beta Was this translation helpful? Give feedback.
-
In case useful, also highlighting a similar tool in python: https://preliz.readthedocs.io/en/latest/examples/param_space_1d_examples.html#from-intervals-to-maximum-entropy-distributions |
Beta Was this translation helpful? Give feedback.
-
I'm finding the functions in {epiparameter} very helpful for defining plausible distributions based on summary statistics in the literature, e.g. for a prior in H5N1 cluster analysis or @sarahdicksonuoft's work that required distribution of measles vaccine coverage.
Could be nice to have a post outlining other use cases if anyone has specific examples of this having been done manually in the past (e.g. papers converting literature estimate with 95% CrI into a parameteric prior).
Beta Was this translation helpful? Give feedback.
All reactions