separate positive and negative returns (Granger Causality)

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Nour88
Posts: 8
Joined: Tue Oct 14, 2014 6:53 am

separate positive and negative returns (Granger Causality)

Postby Nour88 » Sat Apr 11, 2015 2:49 am

Dear members,
Please help..
I want to test granger causality between 2 variables (CT and SP returns) in Eviews using VAR, just like this example.. I want to separate the positive and negative returns. How can I do it with Eviews? Is there a special command for this?
I would greatly appreciate it if you give me some suggestions.
Attachments
Sans titre.JPG
Sans titre.JPG (42.34 KiB) Viewed 4267 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: separate positive and negative returns (Granger Causalit

Postby EViews Gareth » Sat Apr 11, 2015 7:27 am

Set the sample such that it only contains positive values prior to running the test.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: separate positive and negative returns (Granger Causalit

Postby startz » Sat Apr 11, 2015 8:24 am

I think the OP wants both positives and negatives. Something like @recode(x>0,x,0) and @recode(x<0,x,0)

Nour88
Posts: 8
Joined: Tue Oct 14, 2014 6:53 am

Re: separate positive and negative returns (Granger Causalit

Postby Nour88 » Sun Apr 12, 2015 2:12 am

Thanks for your answers
It works and i created 2 variables (positive and negative returns).
Now, should I consider them as endogenous or exogenous variables?
Thanks in advance

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: separate positive and negative returns (Granger Causalit

Postby EViews Glenn » Sun Apr 12, 2015 8:33 am

They're explanatory variables. You won't be able to use the built-in VAR, but you can estimate your spec using the system estimator.

Nour88
Posts: 8
Joined: Tue Oct 14, 2014 6:53 am

Re: separate positive and negative returns (Granger Causalit

Postby Nour88 » Mon Apr 13, 2015 1:41 pm

How can I write it please in Eviews?


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests