Regression line for Scatter Plot with NO intercept term

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

truetears
Posts: 14
Joined: Sat Aug 04, 2012 7:57 am

Regression line for Scatter Plot with NO intercept term

Postby truetears » Sat Aug 04, 2012 8:02 am

Hi guys, below is the output I get when I draw the scatterplot of 2 variables against each other and the red line is the regression line, I got the regression line by going to: Quick -> graph -> scatter -> under details I clicked on options -> then picked regression line.

Now I was wondering how do I draw a regression line through the scatter plot but with NO intercept term, ie, forcing it to pass through the origin. I've been reading the user's guide and playing around myself for ages but can not find an option to do so.

Thank you guys so much!

Image

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

Re: Regression line for Scatter Plot with NO intercept term

Postby startz » Sat Aug 04, 2012 8:23 am

I believe the best you can do is
1. Run the regression.
2. Get the fitted values.
3. Add the fitted values to the scatter diagram.
4. Change the graphing options to show the fitted values with a line rather than symbols.

truetears
Posts: 14
Joined: Sat Aug 04, 2012 7:57 am

Re: Regression line for Scatter Plot with NO intercept term

Postby truetears » Sat Aug 04, 2012 9:33 am

Hi, thanks for the help, I am quite new to Eviews7, I was wondering if you could run me through how to do steps 2-4.

I have run the regression without an intercept by going to quick -> equation estimation -> typed in my dependent and independent variables without the "c" term -> Now I am on the estimation output page shown below:

Image

How exactly do I then do the last 3 steps?

Thanks so much yet again!

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

Re: Regression line for Scatter Plot with NO intercept term

Postby startz » Sat Aug 04, 2012 9:41 am

Push the forecast button and choose a name for the forecast series, say yfit.
Open a group with rainfall zh4tage yfit - in that order.
Choose graph/scatter and then look under options to change symbols to a line.

truetears
Posts: 14
Joined: Sat Aug 04, 2012 7:57 am

Re: Regression line for Scatter Plot with NO intercept term

Postby truetears » Sat Aug 04, 2012 12:22 pm

Thank you so much startz, I got it, it looks just how I wanted it to.

Cheers again!

(hope to learn more about Eviews from you in the near future ^_^)


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 10 guests