Plot the coverage

plotCoverageInjectedSignals(
  logRr,
  seLogRr,
  trueLogRr,
  region = 0.95,
  fileName = NULL
)

Arguments

logRr

A numeric vector of effect estimates on the log scale

seLogRr

The standard error of the log of the effect estimates. Hint: often the standard error = (log(<lower bound 95 percent confidence interval>) - log(<effect estimate>))/qnorm(0.025)

trueLogRr

A vector of the true effect sizes

region

Size of the confidence interval. Default is .95 (95 percent).

fileName

Name of the file where the plot should be saved, for example 'plot.png'. See the function ggsave in the ggplot2 package for supported file formats.

Details

Plot the fractions of estimates where the true effect size is below, above or within the confidence interval, for one or more true effect sizes.