powered by
Estimate the coverage and the Monte Carlo standard error of this estimate given a vector of confidence intervals and the true value.
coverage( true_value, ll, ul, get = c("coverage", "coverage_mcse"), na.rm = FALSE, ... )
A named vector containing the estimate and the Monte Carlo standard error for the coverage.
The true value which should be covered by the interval.
A numeric vector containing the lower limits of the confidence intervals.
A numeric vector containing the upper limits of the confidence intervals.
A character vector containing the values returned by the function.
A logical value indicating whether NA values for ll and ul should be removed before coverage estimation.
Additional arguments to be ignored.
coverage(true_value=0, ll=c(-1, -1, -1, -1), ul=c(1, 1, 1, -0.5))
Run the code above in your browser using DataLab