powered by
This function allows you to compute a companion form matrix in order to check the stability of causal and noncausal part of the ARX model.
companion.form(pol)
Coefficient vector. If polynomial is 1 - ax - bx^2, coefficient vector is c(a, b).
Companion matrix C.
# NOT RUN { pol <- c(0.3,0.4) C <- companion.form(pol) # }
Run the code above in your browser using DataLab