ejs | R Documentation |
Extended James-Stein estimator of a high dimensional sparse parameter.
ejs(d, v.d)
d |
an n vector of observations |
v.d |
an n vector of variances for each component of d |
Extended James-Stein estimator of mean from Brown (2008) and equation (7.3) in Xie et al. (2012)
est - an n vector holding the estimates
Brown, L.D. (2008). In-Season Prediction of Batting Averages: A Field Test of Empirical Bayes and Bayes Methodologies. The Annals of Applied Statistics, 2, 113-152
Xie, X. C., Kou, S. C., and Brown, L. D. (2012). SURE Estimates for a Heteroscedastic Hierarchical Model. Journal of the American Statistical Association, 107, 1465-1479.
sureshrink
,asus
library(asus)
set.seed(42)
d<-rnorm(10,2,1)
v.d<- rep(1,10)
theta.hat<-ejs(d,v.d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.