View source: R/ebmr.update.grr.R
ebmr.update.grr.svd | R Documentation |
Updates parameters of an EBMR fit by fitting the full GRR model, including estimating hyperparameters (residual variance and prior scaling factor). The method uses an SVD on Xtilde = XW^0.5, after which other computations (EM algorithm to maximize hyperparameters, and posterior computations) are cheap.
ebmr.update.grr.svd( fit, tol = 1e-08, maxiter = 1000, compute_Sigma_diag = TRUE, compute_Sigma_full = FALSE, update_residual_variance = TRUE )
fit |
a previous ebmr fit |
tol |
a tolerance for the EM algorithm |
maxiter |
maximum number of iterations for EM algorithm |
compute_Sigma_diag |
boolean flag; set to TRUE to compute the diagonal of the posterior variance, otherwise this variance is set to 0. |
compute_Sigma_full |
boolean flag; set to TRUE to compute full Sigma matrix for testing purposes |
update_residual_variance |
boolean flag; set to FALSE to keep residual variance fixed |
The code is based on the ideas at https://stephens999.github.io/misc/ridge_em_svd.html but extended to deal with case where n>p as well as n<=p.
an updated ebmr fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.