Skip to content

how to read the epidist$prob_dist ouput? #228

Closed Answered by joshwlambert
avallecam asked this question in Q&A
Discussion options

You must be logged in to vote

@avallecam apologies for not getting back to you sooner on this, I had missed it.

The best approach is the use the get_parameters() function from {epiparameter}. The $prob_dist element is one of the most complex in the <epidist> object (because {distributional} is not the easiest to use when users are not familiar with vector classes, and it can be a <distcrete> object), therefore, the approach we take is to provide functions to extract data from this element rather than users extracting it directly, for example using $.

library(epiparameter)
covid_serialint <-
  epiparameter::epidist_db(
    disease = "covid",
    epi_dist = "serial",
    author = "Nishiura",
    single_epidist = T
  )
#>…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@avallecam
Comment options

avallecam Feb 29, 2024
Maintainer Author

Answer selected by joshwlambert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants