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
.