-
Notifications
You must be signed in to change notification settings - Fork 2
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
EpiEstim rmd chunk- use of {distcrete} #127
Comments
Similarly, in the chunk for i2extras, there's part of the code where {epitrix} is used:
I was wondering the same question as above, also when running this I'm now getting an error message and was wondering if it might be related to how now "si" is an epidist object? Error in
|
This is the same idea as 55d55f3. We discretize and format the serial interval for EpiEstim. It has a couple of extra requirements, such as the fact it needs to start with 0 and be scaled to 1. You can re-use the code from 55d55f3 to adapt it with epiparameter. |
Yes, it's caused by the conversion to epidist. |
Hi Hugo, I've been looking into this but I'm not sure how I'd be able to reuse the code from 55d55f3 as it's using Epinow2's generation time function? |
Okay, so we'd have to keep using epitrix? |
This was fixed by #132 |
Hi Hugo, I was reviewing the changes in PR #100 and wanted to clarify something- on the EpiEstim chunk, there's this bit of code which used distcrete:
wrap_si <- function(x) { stopifnot(inherits(x, "distcrete")) max_x <- x$q(0.999) x <- si$d(seq_len(max_x)) x[1] <- 0 x <- x / sum(x) x }
The description is: Function to process a distrcrete object and output
si_discr
argument for EpiEstim::make_configCould you let me know what this function is meant for, and whether this functionality could be replaced by epiparameter?
Thanks!
The text was updated successfully, but these errors were encountered: