Description Usage Arguments Author(s) References
The second step of MOUTHWASH.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | mouthwash_second_step(
betahat_ols,
S_diag,
alpha_tilde,
lambda_seq,
tau2_seq = NULL,
a_seq = NULL,
b_seq = NULL,
mixing_dist = c("normal", "uniform", "+uniform", "sym_uniform"),
likelihood = c("normal", "t"),
pi_init_type = c("zero_conc", "uniform", "random"),
scale_var = TRUE,
degrees_freedom = NULL,
plot_update = FALSE,
sprop = 0,
var_inflate_pen = 0,
verbose = TRUE
)
|
betahat_ols |
A vector of numerics. The OLS estimates of the coefficients of interest. |
S_diag |
A vector of positive numerics. The estimated standard errors. |
alpha_tilde |
A matrix. The number of rows should be equal the length of betahat_ols. The number of columns should equal the number of hidden confounders. |
lambda_seq |
A numeric vector with elements all greater than or equal to 1. These are the tuning parameters for the mixing proportions. |
tau2_seq |
The grid of variances of the mixing distributions
if |
a_seq |
The grid of lower bounds for the uniforms if
|
b_seq |
The grid of upper bounds for the uniforms if
|
mixing_dist |
A character. Should we use a mixture of uniforms
( |
likelihood |
Either |
pi_init_type |
How should we initialize the mixing
proportions? By concentrating on zero ( |
scale_var |
A logical. Should we estimate a variance inflation
parameter ( |
degrees_freedom |
The degrees of freedom of the t-distribution
if |
plot_update |
A logical. Should I plot the the path of the
log-likelihood ( |
sprop |
If b is an effect and s is an estimated
standard error, then we model b/s^{sprop} as
exchangeable. The default is 0. When |
var_inflate_pen |
The penalty to apply on the variance inflation parameter.
Defaults to 0, but should be something non-zero when |
verbose |
If |
David Gerard
Gerard, D., and Stephens, M. 2020. "Empirical Bayes shrinkage and false discovery rate estimation, allowing for unwanted variation", Biostatistics, 21(1), 15-32 doi: 10.1093/biostatistics/kxy029
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.