Description Usage Arguments Details Value Author(s) References See Also Examples
Implements the smoothing by roughening (SBR) estimate of g(theta).
1 |
Y |
vector of data points |
sigma2 |
vector of known variances |
n.iters |
number of SBR iterations |
n.masspoints |
number of mass points for discrete SBR approximation |
verbose |
indicator of whether to print progress information |
See Shen and Louis (1999) for complete details.
Assumes a model of the form Y[k]~N(theta[k],sigma[k]) where theta[k]~g(theta). This function gets posterior means for theta using an empirical Bayes estimate for g. It sets up n.masspoints equally spaced points on the range of Y. Using the EM algorithm, it iteratively refines the estimate of g stopping after n.iters iterations. After many 1000s of iterations this will converge to the NPML for g.
theta |
empirical Bayes posterior mean estimates of theta |
sigma2 |
estimates of sigma2 (currently not estimated, assumed known) |
mu |
mass points for the discrete approximation to SBR |
alpha |
probability mass for each mu |
Greg Ridgeway gregr@rand.org
Laird NM, Louis TA (1991). Smoothing the non-parametric estimate of a prior distribution by roughening: An empirical study. Comput. Statist. and Data Analysis, 12:27-38.
Shen W, Louis TA (1999). Empirical Bayes Estimation via the Smoothing by Roughening Approach. J. Computational and Graphical Statistics, 8: 800-823.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.