PostPercentile {rvalues} | R Documentation |
Posterior expected percentiles
Description
Computes posterior expected percentiles for both parametric and nonparametric models.
Usage
PostPercentile(object)
Arguments
object |
An object of class "rvals" |
Details
With parameters of interest the rank of
the ith parameter (when we set the ranking so that the largest
gets rank 1) is defined as
and the associated percentile is
The posterior expected percentile
for the ith unit (see e.g., Lin et. al. (2006)) is simply
the expected value of
given the data.
The function PostPercentile
computes an asymptotic version of the
posterior expected percentile, which is defined as
where has the same distribution as
and is
independent of both
and the data.
See Henderson and Newton (2014) for additional details.
Value
A vector of estimated posterior expected percentiles.
Author(s)
Nicholas Henderson and Michael Newton
References
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. doi: 10.1111/rssb.12131 https://arxiv.org/abs/1312.5776
Lin, R., Louis, T.A., Paddock, S.M., and Ridgeway, G. (2006). Loss function based ranking in two-stage, hierarchical models. Bayesian Analysis, 1, 915–946.
See Also
Examples
n <- 3000
theta <- rnorm(n, sd = 3)
ses <- sqrt(rgamma(n, shape = 1, scale = 1))
XX <- theta + ses*rnorm(n)
dd <- cbind(XX,ses)
rv <- rvalues(dd, family = gaussian)
perc <- PostPercentile(rv)
plot(rv$rvalues, perc)