View source: R/multivariate_models.R
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.
1 | calc_x_density(x, th_x)
|
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.