Description Usage Arguments Examples
Compute the full conditional (given tau, rho, and data) mean of gamma
1 2 | get_posterior_mean(prior_mean, prior_precision, posterior_precision,
kernel_matrix, tau, y)
|
prior_mean |
Prior mean of gamma |
prior_precision |
Prior precision of gamma |
posterior_precision |
Full conditional precision of gamma |
kernel_matrix |
DPC kernel matrix |
tau |
Sampled value of tau |
y |
Data |
1 2 3 4 5 6 | km = list(mat = Matrix::Diagonal(2, 1))
prior_pr = Matrix::Diagonal(2, 0.3)
tau = 5
post_pr = get_posterior_precision(prior_pr, km, tau)
get_posterior_mean(prior_mean = rep(0, 2), prior_precision = prior_pr,
posterior_precision = post_pr, kernel_matrix = km, tau = tau, y = c(0.9, 0.7))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.