Regression Output (Graph)

For questions regarding programming in the EViews programming language.

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

w_nawfal
Posts: 69
Joined: Fri Jul 30, 2010 6:58 am
Location: Montreal, Canada
Contact:

Regression Output (Graph)

Postby w_nawfal » Wed Oct 27, 2010 11:58 am

Hello All.

I'm using Eviews 7, which allows me to graphically present regression equations along with fitted values and a +/- standard deviation band etc. - but only when i select this option from the "view" menu on the equation out put.

what is the eviews code for this please?
Attachments
Doc1.pdf
Print Screen of Eviews
(245.64 KiB) Downloaded 538 times

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

Re: Regression Output (Graph)

Postby EViews Gareth » Wed Oct 27, 2010 12:34 pm

If you're talking about View->Actual,Fitted,Residual->Actual,Fitted,Residual Graph, then the resids command will do it.

w_nawfal
Posts: 69
Joined: Fri Jul 30, 2010 6:58 am
Location: Montreal, Canada
Contact:

Re: Regression Output (Graph)

Postby w_nawfal » Wed Oct 27, 2010 2:15 pm

thanks a lot Gareth ~ that does the trick perfectly

(is there a way i can save this output as a graph in my workfile?)

Cheers
Wes

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

Re: Regression Output (Graph)

Postby EViews Gareth » Wed Oct 27, 2010 2:24 pm

use the freeze command.

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Re: Regression Output (Graph)

Postby rmoralesaramburu » Mon Nov 18, 2013 9:15 am

Hi,

I am having errors in this inquiry, I am using Eviews 8. If I run this code

t10ois.ls t10yr c ois_1yr2yr
t10ois.resid(g)

I am not getting the actual fitted, residual graph, instead I am getting this error

"T10ois is not defined in "DO_T10OIS.RESID(G)"

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Re: Regression Output (Graph)

Postby rmoralesaramburu » Mon Nov 18, 2013 9:17 am

It is this code I am getting errors

t10ois.ls t10yr c ois_1yr2yr
t10ois.resids(g)

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

Re: Regression Output (Graph)

Postby EViews Gareth » Mon Nov 18, 2013 5:56 pm

Works for me:

Code: Select all

create u 100 series t10yr = @nrnd series ois_1yr2yr = @nrnd equation t10ois t10ois.ls t10yr c ois_1yr2yr t10ois.resids(g)

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Re: Regression Output (Graph)

Postby rmoralesaramburu » Tue Nov 19, 2013 6:47 am

Thanks!!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests