I am trying to run a granger causality test between two variables across a specific time. However, i am finding it difficult to do so, since i am a beginner. Can anyone tell me how to make R use the exact data i have on excel in order to run the test properly. I have tried lmtest and vars, however, when its time to use the granger function how do i make use of the variables from my data, and correctly place them in the granger function?
I hope it is easily understandable, i do apologise for any confusion.