Calculates rejection rate. The function also calculates the associated Monte Carlo standard error.
Arguments
- data
data frame or tibble containing the simulation results.
- p_values
vector or name of column from
data
containing p-values.- alpha
scalar or vector indicating the nominal alpha level(s). Default value is set to the conventional .05.
- format
option
"wide"
(the default) will produce a tibble with one row, with separate variables for each specifiedalpha
. Option"long"
will produce a tibble with one row per specifiedalpha
.