View source: R/geneticAlgorithm.R
extract_regime | R Documentation |
extract_regime
extracts the specified regime from the GMAR, StMAR, or G-StMAR model parameter vector.
Doesn't extract mixing weight parameter \alpha
.
extract_regime(
p,
M,
params,
model = c("GMAR", "StMAR", "G-StMAR"),
restricted = FALSE,
constraints = NULL,
regime,
with_dfs = TRUE
)
p |
a positive integer specifying the autoregressive order of the model. |
M |
|
params |
a real valued parameter vector specifying the model.
Symbol |
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 |
regime |
a positive integer in the interval [1, M] defining which regime should be extracted. |
with_dfs |
Should the degrees of freedom parameter (if any) be included? |
Returns a numeric vector corresponding to the regime with...
Size (p+2x1)
vector (\phi_{m,0},\phi_{m,1},...,\phi_{m,p}, \sigma_{m}^2)
.
Size (p+3x1)
vector (\phi_{m,0},\phi_{m,1},...,\phi_{m,p}, \sigma_{m}^2, \nu_{m})
.
Same as GMAR for GMAR type regimes and same as StMAR for StMAR type regimes.
Parameter vector as described above, but vector \phi_{m}
replaced with
vector \psi_{m}
that satisfies \phi_{m}
=
R_{m}\psi_{m}
.
Size (2x1)
vector (\phi_{m,0}, \sigma_{m}^2)
.
Size (3x1)
vector (\phi_{m,0}, \sigma_{m}^2, \nu_{m})
.
Same as GMAR for GMAR type regimes and same as StMAR for StMAR type regimes.
Parameter vector as described above.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.