apaVectorAutoregress.CompanionMatrix(Betas, WithInterceptOtherwiseNot)
Excel
=apaVectorAutoregress.CompanionMatrix(Betas, WithInterceptOtherwiseNot)Result
Returns the companion matrix of a vector autoregressive (VAR) model, derived from the VAR betas.
Syntax
Betas: r x c matrix of VAR betas, each column containing the betas of a variable
WithInterceptOtherwiseNot: TRUE if the betas include an intercept term, FALSE if not
