View source: R/update_scale_p_mn.R
update_scale_p_mn | R Documentation |
Specifically adresses group selection where conditional expecation depends on vector of parameters, not a single scalar parameter value, i.e., this was specifically developed for our multinomial extension of spike-and-slab EN GLMs.
update_scale_p_mn(b0, ss, theta, alpha, print_out = FALSE)
b0 |
A list. The length of the list should be equal to the total number of predictors, and each element should be a vector of parameter estimates corresponding to each. |
ss |
A vector of spike and slab prior scales, respectively. |
theta |
The current estimate of prior probabilities of inclusion. |
alpha |
A scalar value between 0 and 1 determining the compromise
between the Ridge and Lasso models. When |
print_out |
When TRUE prints intermediate output. |
A list whose first element is a vector of updated scale parameters for each parameter and whose second element is a vector of updated conditional expectations of prior probabilities of model inclusion.
This function is a modified version of update_scale_p()
from
the R package BhGLM
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.