I have already known how to do the linear regression with Eviews 6, and I can draw the regression plot.
For example, I got a regression line such as y = 2x + 3.
Now I want to add another line to the regression plot( just for camparison aim),such as y = 1.5x +2, how can I add the second line into the plot?
thank you!
how to add another line to the regressin graph
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
bit_xiaoxiao
- Posts: 7
- Joined: Tue May 25, 2010 9:41 pm
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: how to add another line to the regressin graph
Make up a new series
and add yAlternative to the graph.
Code: Select all
series yAlternative = 1.5*x+2-
bit_xiaoxiao
- Posts: 7
- Joined: Tue May 25, 2010 9:41 pm
Re: how to add another line to the regressin graph
What I don't know is just how to "add yAlternative to the graph".Make up a new series
and add yAlternative to the graph.Code: Select all
series yAlternative = 1.5*x+2
should I use any command or commands with menus? how can I do it?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: how to add another line to the regressin graph
What command did you use to draw the first graph?
-
bit_xiaoxiao
- Posts: 7
- Joined: Tue May 25, 2010 9:41 pm
Re: how to add another line to the regressin graph
ls y xWhat command did you use to draw the first graph?
I want to add the second line into the first plot, not bulid another plot
-
bit_xiaoxiao
- Posts: 7
- Joined: Tue May 25, 2010 9:41 pm
Re: how to add another line to the regressin graph
I use y and x just for simplifing the problemls y xWhat command did you use to draw the first graph?
I want to add the second line into the first plot, not bulid another plot
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: how to add another line to the regressin graph
I use y and x just for simplifing the problemls y xWhat command did you use to draw the first graph?
I want to add the second line into the first plot, not bulid another plot
Code: Select all
ls y x-
bit_xiaoxiao
- Posts: 7
- Joined: Tue May 25, 2010 9:41 pm
Re: how to add another line to the regressin graph
I use menu to get the scatter plot with regression line. I already have a graph, and I also have the second series, what should I do to add the second line to the graphdoesn't create a graph. What did you do to get the graph after running the regression?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: how to add another line to the regressin graph
Try something likeI use menu to get the scatter plot with regression line. I already have a graph, and I also have the second series, what should I do to add the second line to the graphdoesn't create a graph. What did you do to get the graph after running the regression?
Code: Select all
ls y x
group g x y yAlternativeWho is online
Users browsing this forum: No registered users and 2 guests
