check_same_means: Check whether the parametrization is correct for usage of...

Description Usage Arguments Value

View source: R/argumentChecks.R

Description

check_same_means checks whether the parametrization is correct for usage of same means restrictions

Usage

1
check_same_means(parametrization, same_means)

Arguments

parametrization

"intercept" or "mean" determining whether the model is parametrized with intercept parameters φ_{m,0} or regime means μ_{m}, m=1,...,M.

same_means

Restrict the mean parameters of some regimes to be the same? Provide a list of numeric vectors such that each numeric vector contains the regimes that should share the common mean parameters. For instance, if M=3, the argument list(1, 2:3) restricts the mean parameters of the second and third regime to be the same but the first regime has freely estimated (unconditional) mean. Ignore or set to NULL if mean parameters should not be restricted to be the same among any regimes. This constraint is available only for mean parametrized models; that is, when parametrization="mean".

Value

Throws an error if parametrization type is not "mean" and means are constrained


saviviro/gmvarkit documentation built on Oct. 25, 2021, 2:14 a.m.