View source: R/update_ptheta_group2.R
update_ptheta_group2 | R Documentation |
Update conditional expectation of prior probabilities of inclusion at each iteration.
update_ptheta_group2(group.vars, p, p.bound = c(0.01, 0.99))
group.vars |
A vector containing grouping information. |
p |
The current estimate of conditional prior probabilities of inclusion. |
p.bound |
A vector defining the lower and upper boundaries for the
probabilities of inclusion in the model, respectively. Defaults to
|
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.
A single numeric value between 0 and 1 that estimates the overall inclusion probability.
This function is taken unchanged from the R package BhGLM
,
except that bounds for theta are now able to be specified by the user
rather than assumed to be 0.01 and 0.99.
This is a modified version of the function update_ptheta_group
from the package BhGLM
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.