calc_new_x_log_density: Calculate the log density for a new observation x

Description Usage Arguments Value Author(s)

View source: R/calc_new_x_log_density.R

Description

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).

Usage

1
calc_new_x_log_density(x, y, theta_y, theta_x, hp, transformVar = F)

Arguments

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

Value

The log density

Author(s)

Michael Holton Price <MichaelHoltonPrice@gmail.com>


eehh-stanford/yada documentation built on June 18, 2020, 8:05 p.m.