dens.prior | R Documentation |
This function calculates the density of the prior distribution for the 9 parameters of the adapted Heligman-Pollard model. The density is calculated using a uniform distribution.
dens.prior(x, pri.lo = c(0, 0, 0, 0, 0, 0, 15, 0, 0), pri.hi = c(0.15, 1, 1, 0.5, 0.25, 15, 55, 0.1, 1.25))
x |
A 1 * 9 vector or n * 9 matrix containing values for the eight Heligman-Pollard Parameters. |
pri.lo |
A vector giving the lower bounds of the uniform priors. |
pri.hi |
A vector giving the upper bounds of the uniform priors. |
A scalar describing the density of the prior distribution.
Sharrow, D.J., Clark, S.J., Collinson, M.A., Kahn, K. and Tollman, S.M. (2013). The Age Pattern of Increases in Mortality Affected by HIV: Bayesian Fit of the Heligman-Pollard Model to Data from the Agincourt HDSS Field Site in Rural Northeast South Africa. Demogr. Res. 29, 1039–1096.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.