View source: R/generateParams.R
random_ind | R Documentation |
random_ind
generates random mean parametrized parameter vector.
random_ind(
p,
M,
d,
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,
force_stability = is.null(AR_constraints),
mu_scale,
mu_scale2,
omega_scale,
B_scale,
weight_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 |
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, |
force_stability |
Should the algorithm proposed by Ansley and Kohn (1986) be used to generate AR matrices that always satisfy the stability condition? Not supported if AR constraints are employed. |
mu_scale |
a size |
mu_scale2 |
a size |
omega_scale |
a size |
B_scale |
a size |
weight_scale |
For...
|
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.