calc_x_density: Calculate the density for a model th_x, p(x|th_x)

Description Usage Arguments

View source: R/multivariate_models.R

Description

Calculate the density at x given a parameterization for the density of th_x. Currently, the exponential distribution, Weibull mixtures, and uniform distribution are supported. If fit_type is 'exponential' or 'uniform', the fit parameter (fit) is a vector, whereas for 'offset_weib_mix' it is a list with the vectors lambda (weighting), shape, and scale.

Usage

1
calc_x_density(x, th_x)

Arguments

x

A vector of ages at which to calculate the density

th_x

A list with the fit type (fit_type) and the fit parameter specification (fit; see details)


MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.