compute_prior_proposal_ratio | R Documentation |
This function returns the ratio between the prior and proposal distribution
for each sampled parameter value (i.e. each row in param
).
This function returns the first weight
See step (4) of the AMIS algorithm in
Integrating geostatistical maps and infectious disease transmission models
using adaptive multiple importance sampling.
Renata Retkute, Panayiota Touloupou, Maria-Gloria Basanez,
T. Deirdre Hollingsworth, Simon E.F. Spencer
Ann. Appl. Stat. 15 (4) 1980 - 1998, December 2021.
DOI: https://doi.org/10.1214/21-AOAS1486
compute_prior_proposal_ratio(components, param, prior_density, df, log)
components |
A list of mixture components made of
|
param |
A matrix containing the sampled parameter vectors. |
prior_density |
Vector containing the prior density of each sampled parameter vector. |
df |
The degrees of freedom for the t-distributed proposal distribution. |
log |
A logical indicating whether to work on the log scale. |
A vector containing the prior/proposal ratio for each row in
param
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.