View source: R/parameterReforms.R
sort_impactmats | R Documentation |
B_1
is positive and in a decreasing order.sort_impactmats
sorts and sign changes the columns of the impact matrices of the regimes so that the first element
in each column of B_1
is positive and in a decreasing order. The same reordering and sign changes performed to the columns of
B_1
are applied to the rest of the impact matrices to obtain an observationally equivalent model. For skewed t models, also
the signs of the skewness parameters corresponding to the columns whose signs are changed are changed accordingly.
sort_impactmats(
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"),
AR_constraints = NULL,
mean_constraints = NULL,
weight_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 |
AR_constraints |
a size |
mean_constraints |
Restrict the mean parameters of some regimes to be identical? Provide a list of numeric vectors
such that each numeric vector contains the regimes that should share the common mean parameters. For instance, if
|
weight_constraints |
a list of two elements, |
This function is internally used by GAfit
and fitSTVAR
, so structural models or B_constraints
are not supported.
Returns sorted parameter vector of the form described for the argument params
,
with the regimes sorted so that...
cond_dist == "ind_Student"
:The parameter vector with the columns of the impact
matrices sorted and sign changed so that the first element in each column of B_1
is
positive and in a decreasing order. Sorts also the degrees of freedom parameters accordingly.
cond_dist == "ind_skewed_t"
:The parameter vector with the columns of the impact
matrices sorted so that the first element in each column of B_1
are in a decreasing order.
Also sorts the degrees of freedom and skewness parameters accordingly. Moreover, if signs of any column
are changed, the signs of the corresponding skewness parameter values are also changed accordingly.
Nothing to sort, so returns the original parameter vector given in param
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.