setup_pseudoprior: function estimate a value for the pseudo prior in order to...

Description Usage Arguments Value

View source: R/Setup_functions.R

Description

function estimate a value for the pseudo prior in order to have even mixing. Note, this is based on initial parameter values so may need adjusting.

Usage

1
2
setup_pseudoprior(pars_ini, posterior_distributions, scale_model_type,
  tolerance = 0.01)

Arguments

pars_ini

vector of initial parameters for seroprevalence

posterior_distributions

distribution parameters for each model pseudo priors

scale_model_type

the model whose posterior distribution sd is to be scaled

tolerance

how close the difference between the pseudo prior probabilities shoud be at the initial parameters. Defaults to 0.01

Value

Estimate of scaling factor of scale_model_type posterior distributions sd- assuming they are normally distributed


mrc-ide/YFestimation documentation built on March 13, 2021, 1:40 p.m.