View source: R/parameterReforms.R
sort_regimes | R Documentation |
sort_regimes
sorts regimes in the parameter vector according to
the transition weight parameters.
sort_regimes(
p,
M,
d,
params,
weight_function = c("relative_dens", "logistic", "mlogit", "exponential", "threshold",
"exogenous"),
weightfun_pars = NULL,
cond_dist = c("Gaussian", "Student", "ind_Student", "ind_skewed_t"),
identification = c("reduced_form", "recursive", "heteroskedasticity",
"non-Gaussianity"),
B_constraints = NULL
)
p |
a positive integer specifying the autoregressive order |
M |
a positive integer specifying the number of regimes |
params |
a real valued vector specifying the parameter values.
Should have the form
For models with...
Above, |
weight_function |
What type of transition weights
See the vignette for more details about the weight functions. |
weightfun_pars |
|
cond_dist |
specifies the conditional distribution of the model as |
identification |
is it reduced form model or an identified structural model; if the latter, how is it identified (see the vignette or the references for details)?
|
B_constraints |
a |
Constrained parameter vectors are not supported (except B_constraints
for structural models identified
by heteroskedasticity).
Returns sorted parameter vector of the form described for the argument params
,
with the regimes sorted so that...
weight_function == "relative_dens"
:\alpha_{1}>...>\alpha_{M}
.
weight_function == "logistic"
:Nothing to sort, so returns the original parameter vector given in param
.
weight_function == "mlogit"
:Does not currently sort, so returns the original parameter vector given in
param
.
weight_function == "exponential"
:Nothing to sort, so returns the original parameter vector given in
param
.
weight_function == "threshold"
:The increasing ordering of the thresholds is imposed in the parameter space,
so nothing to sort and thereby returns the original parameter vector given in param
.
weight_function == "exogenous"
:Does not sort but returns the original parameter vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.