Granger causality

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

naz_08
Posts: 7
Joined: Tue Dec 04, 2012 1:56 am

Granger causality

Postby naz_08 » Fri Dec 14, 2012 2:52 pm

hi ,

Im trying to find the granger causality between the different returns (ld) and the wti_oil. When I do the granger causality, i get causality of all the terms, but i only want all the terms with respect to wti_oil ONLY. I have tried using the eviews programming guide and this is what i came up with , but it doesnt work. Please advise asap. Thank you in advance.

Code: Select all

'change path to program path %path = @runpath cd %path load hongkong.wf1 For %sp ld_autmbhk ld_bankshk ld_bmatrhk ld_chmclhk ld_cnsmghk ld_cnsmshk ld_cnstmhk ld_fdbevhk ld_finanhk ld_indgshk ld_indushk ld_insurhk ld_mediahk ld_oilgshk ld_perhhhk ld_rlesthk ld_rtailhk ld_tecnohk ld_telcmhk ld_totmkhk ld_trleshk ld_utilshk For %oil ld_wti_oil cause (4) %sp %oil group granger %sp %oil granger.cause (4,p) next next

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests