simaerep
simaerep copied to clipboard
simulate adverse event reporting in clinical trials with the goal of detecting under-reporting sites.
prob_high = ifelse( .data$mean_ae_site_med75 == .data$mean_ae_study_med75, 1, .data$prob_high ) https://github.com/openpharma/simaerep/blob/dd5e9e7d39d20c4069775526ea2303d5c3120175/R/simaerep.R#L417 In this line we are setting the probability to 1 for site means which are equal (==) to study mean....
This release changes defaults according to the latest algorithm improvements. - [x] over-reporting default - [x] consider making inframe default method - [x] not use AE wording, docs, vignettes, DESCRIPTION,...
identify untested source code lines and add unit tests ``` cov
a .parallel parameter has been released in the purrr dev version https://purrr.tidyverse.org/dev/reference/parallelization.html as soon as this is on CRAN, checkout whether this can be used to tidy up the simaerep...