Hello,
I know how to get the correlation matrix for the dependent and independent variables using menu driven commands. But I would like to get a correlation matrix that includes the lags of all the variables (up to as many lags as I want). I can manually type in the lagged variables but is there a pre-set command in Eviews where I can quickly specify the number of lags for which I want this done? I want something like this (see below). The example is for only up to 2 lags, but I want up to 10 lags.
Oh and my company is still using Eviews 7.1
y y(-1) y(-2) x1 x2 x1(-1) x1(-2) x2(-1) x2(-2)
y 1
y(-1) 1
y(-2) 1
x1 1
x2 1
x1(-1) 1
x1(-2) 1
x2(-1) 1
x2(-2) 1
Thanks,
Umair
correlation matrix with lagged variables
Moderators: EViews Gareth, EViews Moderator
-
- Posts: 1
- Joined: Wed Aug 26, 2015 7:54 am
correlation matrix with lagged variables
- Attachments
-
- example_correlation matrix.xlsx
- (8.06 KiB) Downloaded 369 times
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13322
- Joined: Tue Sep 16, 2008 5:38 pm
Re: correlation matrix with lagged variables
You can create a group with lagged variables using the to syntax:
You can then use that group to do correlation analysis etc...
Code: Select all
group mygroup y(0 to -10) x1(0 to -10) x2(0 to -10)
You can then use that group to do correlation analysis etc...
Follow us on Twitter @IHSEViews
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 24 guests