View source: R/grid_selection.R
ebnm_scale_npmle | R Documentation |
The default method for setting the scale
parameter for functions
ebnm_npmle
and ebnm_deconvolver
.
ebnm_scale_npmle(
x,
s,
min_K = 3,
max_K = 300,
KLdiv_target = 1/length(x),
pointmass = TRUE
)
x |
A vector of observations. Missing observations ( |
s |
A vector of standard errors (or a scalar if all are equal). Standard errors may not be exactly zero, and missing standard errors are not allowed. |
min_K |
The minimum number of components |
max_K |
The maximum number of components |
KLdiv_target |
The desired bound
where
we have that
where |
pointmass |
When the range of the data is so large that To be exact,
for a
rationale, see References below. Note however that |
Jason Willwerscheid (2021). Empirical Bayes Matrix Factorization: Methods and Applications. University of Chicago, PhD dissertation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.