Description Usage Arguments Value
Calculate the section of the acceptance probabilty pertaining to the posterior distribution of our parameters
1 2 | calcPostRatio(gamma_prop, gamma_curr, var_prop, var_curr, Q_full, d_prop,
d_curr, y_vec, dim_prior_vec, R_inv_full)
|
gamma_prop |
Vector containing proposal for Gamma |
gamma_curr |
Vector containing the current value for Gamma |
var_prop |
Proposed value for the variance |
var_curr |
Current value for the variance |
Q_full |
Full size (n_obs * (d_max + 1)) matrix for Q |
d_prop |
Proposed polynomial degree |
d_curr |
Current polynomial degree |
y_vec |
Vector of y observations |
dim_prior_vec |
Vector containing prior values for our dimension parameter |
R_inv_full |
Full size (d_max + 1) * (d_max + 1) basis inverse matrix |
A value for the posterior acceptance ratio
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.