randomIndividual {uGMAR} | R Documentation |
DEPRECATED, USE random_ind
OR smart_ind
INSTEAD!
Create random GMAR, StMAR, or G-StMAR model compatible parameter vector
Description
randomIndividual
creates a random GMAR, StMAR, or G-StMAR model compatible mean-parametrized parameter vector.
DEPRECATED, USE random_ind
INSTEAD!
smartIndividual
creates a random GMAR, StMAR, or G-StMAR model compatible parameter vector close to argument params
.
Sometimes returns exactly the given parameter vector. DEPRECATED, USE smart_ind
INSTEAD!
Usage
randomIndividual(
p,
M,
model = c("GMAR", "StMAR", "G-StMAR"),
restricted = FALSE,
constraints = NULL,
mu_scale,
sigma_scale,
forcestat = FALSE,
meanscale = NULL,
sigmascale = NULL
)
smartIndividual(
p,
M,
params,
model = c("GMAR", "StMAR", "G-StMAR"),
restricted = FALSE,
constraints = NULL,
mu_scale,
sigma_scale,
accuracy,
which_random = numeric(0),
forcestat = FALSE,
whichRandom = NULL,
meanscale = NULL,
sigmascale = NULL
)
Arguments
p |
a positive integer specifying the autoregressive order of the model. |
M |
|
model |
is "GMAR", "StMAR", or "G-StMAR" model considered? In the G-StMAR model, the first |
restricted |
a logical argument stating whether the AR coefficients |
constraints |
specifies linear constraints imposed to each regime's autoregressive parameters separately.
The symbol |
mu_scale |
a real valued vector of length two specifying the mean (the first element) and standard deviation (the second element)
of the normal distribution from which the |
sigma_scale |
a positive real number specifying the standard deviation of the (zero mean, positive only by taking absolute value) normal distribution from which the component variance parameters (for random regimes) should be generated. |
forcestat |
use the algorithm by Monahan (1984) to force stationarity on the AR parameters (slower) for random regimes? Not supported for constrained models. |
meanscale |
deprecated! Use |
sigmascale |
deprecated! Use |
params |
a real valued parameter vector specifying the model.
Symbol |
accuracy |
a real number larger than zero specifying how close to |
which_random |
a numeric vector of maximum length |
whichRandom |
deprecated! Use |
Details
DEPRECATED, USE random_ind
OR smart_ind
INSTEAD!
These functions can be used, for example, to create initial populations for the genetic algorithm. Mean-parametrization
(instead of intercept terms \phi_{m,0}
) is assumed.
Value
Returns estimated parameter vector with the form described in initpop
.
References
Monahan J.F. 1984. A Note on Enforcing Stationarity in Autoregressive-Moving Average Models. Biometrica 71, 403-404.