compute_weight_matrix: Compute weight matrix across timepoints using appropriate...

View source: R/AMIS_steps.R

compute_weight_matrixR Documentation

Compute weight matrix across timepoints using appropriate method

Description

Wrapper function to select appropriate method to calculate weight matrix.

Usage

compute_weight_matrix(
  likelihoods,
  simulated_prevalence,
  amis_params,
  first_weight
)

Arguments

likelihoods

An array with dimension n_tims,n_locs,n_sims – ie timepoints x locations x simulations.

simulated_prevalence

An n_sims x n_tims matrix containing the simulated prevalence values for each of the parameter samples. (double)

amis_params

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

first_weight

A vector containing the values for the right hand side of the weight expression. Should be of the same length as the rows in simulated_prevalence.

Value

normalised weight matrix.


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