View source: R/update_scale_p.R
update_scale_p | R Documentation |
Update conditional expectation of prior probabilities of inclusion at each iteration.
update_scale_p(b0, ss, theta, alpha)
b0 |
A vector of current parameter estimates. |
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. Whenv |
A list whose first element is a vector of updated scale parameters for eachvparameter and whose second element is a vector of updated conditional expectationsvof 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.