Description Usage Arguments Value Author(s)
View source: R/calc_new_x_log_density.R
calc_new_x_log_density
calculates the log density for a new observation x given known y. This is in essence a wrapper for MCMC sampling of x for the probability density p(x|y,D,alpha). Optionally, the input can be the transformed variable xbar = log(x). The densities of x and x_bar are realated by p_xbar(xbar) = p_x(xbar)*exp(xbar).
1 | calc_new_x_log_density(x, y, theta_y, theta_x, hp, transformVar = F)
|
y |
The known value of the response variables |
theta_y |
theta_y as a list (single theta_y sample) or list of lists (multiple theta_y samples) |
theta_x |
Parameterization for distribution of x (exponential rate) |
hp |
Hyperparameters |
transformVar |
Boolean indicating whether the input is xbar [optional; default FALSE] |
xbar |
log of the scalar age at which to calculate the log density |
The log density
Michael Holton Price <MichaelHoltonPrice@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.