View source: R/03-latent-variables.R
Compute the log-posterior for theta, the log-precision, and sigma, the standard deviation, of the RW2 model components.
1 2 3 | log_posterior_theta(theta, W, model_data, hessian_structure = NULL, Q = NULL)
log_posterior_sigma(sigma, W, model_data, hessian_structure = NULL, Q = NULL)
|
theta |
Vector of log-precisions at which to evaluate the log-posterior. theta = -2*log(sigma). |
W |
The mode of the log-posterior of W|theta,y for this theta. Computed outside and passed in. |
model_data |
a ccmodeldata object created using model_setup() |
hessian_structure |
Optional, sparse structure of the Hessian created using hessian_log_likelihood_structure() |
Q |
Optional, Q matrix evaluated at this theta. Will be created if not supplied. |
sigma |
Vector of standard deviations at which to evaluate the log-posterior. sigma = exp(-.5 * theta) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.