prior_LSBP | R Documentation |
This auxiliary function can be used for specifying the prior hyperparameters in the LSBP_Gibbs
, LSBP_ECM
, LSBP_VB
main functions.
prior_LSBP( p_kernel, p_mixing, b_kernel = rep(0, p_kernel), B_kernel = diag(10^6, p_kernel), b_mixing = rep(0, p_mixing), B_mixing = diag(10^4, p_mixing), a_tau = 0.1, b_tau = 0.1 )
p_kernel, p_mixing |
The dimension of the design matrices for the kernel component and the mixing component, respectively. |
b_kernel |
A |
B_kernel |
A |
b_mixing |
A |
B_mixing |
A |
a_tau, b_tau |
The hyperparameters of a Gamma prior distribution for the kernel precision. |
The function returns a list having the same entries provided as argument. Missing arguments are filled with default values, although this is NOT recommended in general.
## Not run: data(cars) prior <- prior_LSBP(p_kernel = 1, p_mixing = 2, a_tau = 1.5, b_tau = 1.5) fit_em <- LSBP_ECM(dist ~ 1 | speed, data = cars, H = 4, prior = prior) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.