Estimates the expected proportion of units in the top fraction and those deemed to be in the top fraction by the r-value procedure. If plot=TRUE, the curve is plotted before the estimated function is returned.
OverlapCurve(object, plot = TRUE, xlim, ylim, xlab, ylab, main, ...)
An object of class "rvals"
logical. If TRUE, the estimated overlap curve is plotted.
x and y - axis limits for the plot
x and y - axis labels
the title of the plot
additional arguments to plot.default
A function returning estimated overlap values.
For parameters of interest OverlapCurve
estimates this overlap
for values of alpha across (0,1) and plots (if plot=TRUE
)
the resulting curve.
Henderson, N.C. and Newton, M.A. (2016). Making the cut: improved ranking and selection for large-scale inference. J. Royal Statist. Soc. B., 78(4), 781-804. 10.1111/rssb.12131 https://arxiv.org/abs/1312.5776
# NOT RUN {
n <- 500
theta <- rnorm(n)
ses <- sqrt(rgamma(n,shape=1,scale=1))
XX <- theta + ses*rnorm(n)
dd <- cbind(XX,ses)
rvs <- rvalues(dd, family = gaussian)
OverlapCurve(rvs, cex.main = 1.5)
# }
Run the code above in your browser using DataLab