Description Usage Arguments Details Value Author(s) References See Also Examples
Implements the nonparametric maximum likelihood estimation (NPML) estimate of g(theta).
1 2 3 4 5 6 |
Y |
vector of data points |
sigma2 |
vector of known variances |
mu |
vector of initial mass points for the NPML |
alpha |
vector of initial weights on each mass point, mu |
tolerance |
absolute change in thetas before considered converged |
verbose |
indicator of whether to print progress information |
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 the NPML estimate for g. It uses the EM algorithm to solve for g. No attempt is made to merge very close mass points since our main interest is in estimates of theta[k].
theta |
empirical Bayes posterior mean estimates of theta |
sigma2 |
estimates of sigma2 (currently not estimated, assumed known) |
mu |
mass points from the NPML |
alpha |
probability mass for each mu |
Greg Ridgeway gregr@rand.org
Laird N.M. (1982). Empirical Bayes estimate using the non-parametric maximum likelihood estimate of the prior. Journal of Statistical Computation and Simulation, 15:211-220.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.