Generate the next mapping of model-types chosen from regime-specific sets of possible model-types.

PCMNextMapping(mapping, modelTypes, allowedModelTypesIndices)

Arguments

mapping

a vector with elements from modelTypes. (repetitions are allowed) denoting a current model-to-regime mapping.

modelTypes

a vector of unique model-types, e.g. c("BM", "OU").

allowedModelTypesIndices

a list of the same length as mapping with integer vector elements or NULLs. When an element of this list is an integer vector its elements denote unique positions in modelTypes, i.e. the allowed model-types for the regime at that position in mapping.

Value

a vector of the same length as mapping with elements from modelTypes.