Creates a likelihood component list for MAS

make_likelihood_component(ids, models, lambdas, parameters = NA, nyears)

Arguments

ids

A vector of the IDs of each likelihood component in the model

models

A vector with the model distributions for each likelihood type; allowable entries include "lognormal", "multinomial", and "dirichlet"

lambdas

the weighting factors for each likelihood component, one for each year

parameters

only needed for the dirichlet likelihoods, the vectors of observation error parameters

nyears

number of years for each likelihood component

Value