powered by
Put the transition matrix `B` into companion form
comp_form(B)
Transition matrix from a VAR model
Companion matrix of the input matrix
# NOT RUN { comp_form(matrix(c(1:4), nrow = 2, byrow = TRUE)) ## matrix(c(4,-2,-3,1), nrow = 2, byrow = TRUE) # }
Run the code above in your browser using DataLab