prob_lower_site_ae_vs_study_ae {simaerep} | R Documentation |
Calculate bootstrapped probability for obtaining a lower site mean AE number.
Description
Internal function used by sim_sites()
Usage
prob_lower_site_ae_vs_study_ae(
site_ae,
study_ae,
r = 1000,
parallel = FALSE,
under_only = TRUE
)
Arguments
site_ae |
vector with AE numbers |
study_ae |
vector with AE numbers |
r |
integer, denotes number of simulations, default = 1000 |
parallel |
logical, toggles parallel processing on and of, default = F |
under_only |
compute under-reporting probabilities only, default = TRUE |
Details
sets pvalue=1 if mean AE site is greater than mean AE study
Value
pval
See Also
Examples
prob_lower_site_ae_vs_study_ae(
site_ae = c(5, 3, 3, 2, 1, 6),
study_ae = c(9, 8, 7, 9, 6, 7, 8),
parallel = FALSE
)
[Package simaerep version 0.5.0 Index]