View source: R/parameterReforms.R
change_parametrization | R Documentation |
change_parametrization
changes the parametrization of the given parameter
vector to change_to
.
change_parametrization(
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"),
AR_constraints = NULL,
mean_constraints = NULL,
weight_constraints = NULL,
B_constraints = NULL,
change_to = c("intercept", "mean", "orig", "alt")
)
p |
a positive integer specifying the autoregressive order |
M |
a positive integer specifying the number of regimes |
d |
the number of time series in the system, i.e., the dimension |
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)?
|
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, |
B_constraints |
a |
change_to |
|
Parametrization cannot be changed for models with mean constraints! Note that changing between "orig" and "alt"
changes the meaning of sign constraints in B_constraints
(sign constraints imposed on "alt" is very different to
those imposed on "orig"). Thus, this function should not be used to switch between "orig" and "alt" when sign constraints
are imposed!
Returns parameter vector described in params
, but with parametrization changed according
to change_to
.
No argument checks!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.