calc_mixed_cum_probit_posterior: Calculate posterior for mixed cumulative probit model

Description Usage Arguments Value Author(s) See Also

View source: R/calc_mixed_cum_probit_posterior.R

Description

calc_mixed_cum_probit_posterior calculates the posterior probability of an observation as a function of a vector xv, which is assumed to be uniformly sampled.

Usage

1
calc_mixed_cum_probit_posterior(theta_y, theta_x, xv, y, hp, asLog = F)

Arguments

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)

xv

A vector of ages at which to calculate posterior

y

A new observation

hp

Hyperparameters

asLog

A logical variable indicating whether to return the (unnormalized) log of the likelihood

Value

The vector of posterior probabilities

Author(s)

Michael Holton Price <MichaelHoltonPrice@gmail.com>

See Also

simConstHaz, fitConstHaz, fitLinHaz


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