Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I downloaded the closing prices of stocks. Then I computed the returns and saved in a matrix.
Now i want to simulate an AR(1) with the value of the returns. How can i do it?
P.S - in R studio
Required, but never shown