Extract underlying distributions and plot to compare #269
Replies: 1 comment
-
Collaborative design document for function(s) to extract ‘distribution of distributions’ from epireview using epiparameter 1. Extract available studies and convert to distributions b) No known distribution but summary parameters available (e.g. parameter_value_type and parameter_uncertainty_type); can be linked by study id. Would require distribution assumption to convert using epiparameter (e.g. c) Range of values with no known distribution (type specified in parameter_type) across levels of disaggregation (parameter_lower_bound and parameter_upper_bound). Can extract with epiparameter (e.g. Additional considerations:
2. Synthesise output (i.e. list with distribution of distributions) into meaningful function for use in analysis b) Define a new epidist object or define a new empirical distribution (i.e. mixture model via ecdf) then (b.1) consider fitting to this (but issues with the tail potentially) c) Create function to generate random sample from the combined empirical distribution. (b) and (c) perhaps most straightforward and general, with easy intuition for users. For all approaches would need to weight mixture somehow (e.g. by sample size or inverse variance) Broader issues to consider:
Original document: https://docs.google.com/document/d/18JNyoHkbIIw96rha2oEMF2DT839q-3I05fchbI2iwpU/edit?usp=sharing |
Beta Was this translation helpful? Give feedback.
-
From discussions, thought it would be useful for user have ability to plot the available distributions and have these stored for future use as
epidist
objects. Below code extracts onset-to-death parameters for Ebola (so opening steps similar to quick start in this discusison ), then converts distributions where available and plots and stores.The resulting
epidist_ebola_otd_list
object could then be used as model input distribution, e.g. in simulation scenarios like the one described here.Beta Was this translation helpful? Give feedback.
All reactions