mc_from_factors | R Documentation |
Compute a multi-companion matrix from its companion factors or from a periodic filter. Create the multi-companion matrix corresponding to a periodic filter by multiplying the relevant companion matrices in reverse order.
mc_from_factors(x)
mc_from_filter(x)
x |
a matrix with a row for each companion factor, see details. |
x
is a matrix whose i-th row is the top row of the i-th
companion factor (for mc_from_factors
) or the filter
coefficients for the i-th season (for mc_from_filter
).
mc_from_factors
is, effectively, the inverse of mc_factorize
.
The companion matrices specified by the argument are multiplied.
mc_from_filter
is similar except that the relevant companion
matrices are multiplied in reverse order. After all, it is natural to
have the coefficients for the i-th season in the i-th row!
todo: add an argument to specify the "first" season.
The top of the resulting multi-companion matrix.
Currently mc_from_factors
calls mCompanion
, which it probably
should not do.
Georgi N. Boshnakov
boshnakov2002mcmcompanion
mc_factorize
x <- matrix(1:8, nrow = 2)
mc_from_factors(x)
mCompanion(mc_from_factors(x))
mc_from_filter(x)
mCompanion(mc_from_filter(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.