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

loading ebola si #303

Open
wzmli opened this issue May 16, 2024 · 0 comments
Open

loading ebola si #303

wzmli opened this issue May 16, 2024 · 0 comments
Milestone

Comments

@wzmli
Copy link

wzmli commented May 16, 2024

Please include a brief description of the issue and any proposed solutions you may have.

Error message:
Error in is_epidist_params(prob_dist, prob_dist_params) :
Assertion on 'prob_dist_params' failed: Must have unique names, but element 3 is duplicated.
Calls: as_epidist ... is_epidist_params -> -> makeAssertion -> mstop

Code:

ebola_data <- epireview::load_epidata("ebola")

ebola_si <- (ebola_data$params
%>% filter(parameter_type == "Human delay - serial interval")
%>% filter(distribution_type == "Gamma")
)

print(as.data.frame(ebola_si[1,]))

epiobj <- as_epidist(ebola_si[1,])

Here is a zoomed in version.

Some parameter_data_id worked and some doesn't.

ebola_si <- (ebola_data$params
%>% filter(parameter_type == "Human delay - serial interval")
%>% filter(parameter_data_id == "5c8d68c39d1c3b9870ecaaff0280d02e") ## failed
)

epiobj <- as_epidist(ebola_si[1,])

Here is an parameter_data_id that works:

ebola_si <- (ebola_data$params
%>% filter(parameter_type == "Human delay - serial interval")
%>% filter(parameter_data_id == "0c3e02f80addfccc1017fa619fba76c5") ## work
)

epiobj <- as_epidist(ebola_si[1,])

@joshwlambert joshwlambert added this to the v0.2.0 milestone May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants