View source: R/parameterReforms.R
reform_parameters | R Documentation |
reform_parameters
takes a parameter vector of any (non-constrained) GMAR, StMAR, or G-StMAR model
and returns a list with the parameter vector in the standard form, parameter matrix containing AR coefficients and
component variances, mixing weights alphas, and in case of StMAR or G-StMAR model also degrees of freedom parameters.
reform_parameters(
p,
M,
params,
model = c("GMAR", "StMAR", "G-StMAR"),
restricted = FALSE
)
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 |
This function does not support models imposing linear constraints. No argument checks in this function.
Returns a list with...
$params
parameter vector in the standard form.
$pars
corresponding parameter matrix containing AR coefficients and component variances. First row for phi0 or means depending on the parametrization. Column for each component.
$alphas
numeric vector containing mixing weight parameters for all of the components (also for the last one).
$dfs
numeric vector containing degrees of freedom parameters for all of components.
Returned only if model == "StMAR"
or model == "G-StMAR"
.
@keywords internal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.