View source: R/generateParams.R
smart_ind | R Documentation |
smart_ind
creates random mean parametrized parameter vector that is
model fairly close to a given parameter vector. The result may not be satisfy the stability
condition.
smart_ind(
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,
accuracy = 1,
which_random = numeric(0),
mu_scale,
mu_scale2,
omega_scale,
B_scale,
ar_scale = 1,
ar_scale2 = 1,
fixed_params = 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, |
accuracy |
a positive real number adjusting how close to the given parameter vector the returned individual should be. Larger number means larger accuracy. Read the source code for details. |
which_random |
a vector with length between 1 and M specifying the mixture components that should be random instead of close to the given parameter vector. This does not consider constrained AR or lambda parameters. |
mu_scale |
a size |
mu_scale2 |
a size |
omega_scale |
a size |
B_scale |
a size |
ar_scale |
a positive real number between zero and one adjusting how large AR parameter values are typically
proposed in construction of the initial population: larger value implies larger coefficients (in absolute value).
After construction of the initial population, a new scale is drawn from |
ar_scale2 |
a positive real number adjusting how large AR parameter values are typically proposed in some random mutations (if AR constraints are employed, in all random mutations): larger value implies smaller coefficients (in absolute value). Values larger than 1 can be used if the AR coefficients are expected to be very small. If set smaller than 1, be careful as it might lead to failure in the creation of parameter candidates that satisfy the stability condition. |
fixed_params |
a vector containing fixed parameter values for intercept, autoregressive, and weight parameters
that should be fixed in the initial population. Should have the form:
For models with...
Note that |
Structural models are not supported!
Returns random mean parametrized parameter vector that has the same form as the argument params
in the other functions, for instance, in the function loglikelihood
.
Ansley C.F., Kohn R. 1986. A note on reparameterizing a vector autoregressive moving average model to enforce stationarity. Journal of statistical computation and simulation, 24:2, 99-106.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.