Calculates rejection rate. The function also calculates the associated Monte Carlo standard error.

calc_rejection(res_dat, p_values, alpha = 0.05)

## Arguments

res_dat data frame or tibble containing the simulation results. name of the column containing the p-values. number indicating the nominal alpha level. Default value is set to the conventional .05.

## Value

A tibble containing the number of simulation iterations, performance criteria estimate and the associated MCSE.

## Examples

calc_rejection(res_dat = t_res, p_values = p_val)
#> # A tibble: 1 x 3
#>       K rej_rate rej_rate_mcse
#>   <int>    <dbl>         <dbl>
#> 1  1000    0.702        0.0145