ECR: Compute the empirical coverage rate for Type I errors and Power
Description
Computes the detection rate for determining empirical Type I error and power rates using information
from the confidence intervals. Note that using 1 - ECR(CIs, parameter) will provide the empirical
detection rate.
Usage
ECR(CIs, parameter)
Arguments
CIs
a numeric vector or matrix of confidence interval values for a
given parameter value, where the first element/column indicates the lower confidence interval
and the second element/column the upper confidence interval. If a
vector
parameter
a numeric scalar indicating the fixed parameter value