g_rule | R Documentation |
Given tuning parameter vector t, returns corresponding estimate for the mean vector of a homoscedastic sequence of independent Gaussian observations
g_rule(x, s, t, rho = 0)
x |
primary Gaussian sequence |
s |
standard deviation of primary sequence |
t |
tuning parameter vector t1 |
rho |
regularization parameter, closer to 0 means less regularization |
estimated values of means of primary Gaussian sequence
## generate data n = 250 set.seed(1) theta = rnorm(n) x = theta + rnorm(n) ## loss of MLE mean((theta - x)^2) ## loss of oracle separable estimator mean((theta - g_rule(x, 1, theta))^2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.