evaluate_likelihood: Evaluate likelihood for each additional simulation for a...

View source: R/AMIS_steps.R

evaluate_likelihoodR Documentation

Evaluate likelihood for each additional simulation for a single timepoint

Description

Implements analytical likelihoods if a likelihood function is available; otherwise histogram or empirical likelihoods are generated based on samples from a geostatistical map.

Usage

evaluate_likelihood(prevalence_map, prev_sim, amis_params)

Arguments

prevalence_map

A list containing objects data (an L x M matrix of data); and likelihood a function taking arguments data (a matrix of data as above), prevalence (a matrix of output from the transmission model) and optional logical log, which returns the vector of (log)-likelihoods.

prev_sim

A vector of simulated prevalences

amis_params

A list of parameters, e.g. from default_amis_params.

Value

A locations x simulations matrix of (log-)likelihoods.


OxfordRSE/trachomAMIS documentation built on Aug. 1, 2022, 10:21 p.m.