compute_weight_matrix_histogram | R Documentation |
Compute matrix describing the weights for each parameter sampled, for each location. One row per sample, one column per location. Each weight is computed based on the empirical Radon-Nikodym derivative, taking into account geostatistical prevalence data for the specific location and the prevalence value computed from the transmission model for the specific parameter sample.
compute_weight_matrix_histogram( likelihoods, prev_sim, amis_params, weight_matrix )
likelihoods |
An n_sims x n_locs matrix of (log-)likelihoods NB: transpose of slice of array. |
prev_sim |
A vector containing the simulated prevalence value for each parameter sample. (double) |
amis_params |
A list of parameters, e.g. from |
weight_matrix |
A matrix containing the current values of the weights. |
An updated weight matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.