Page 1 of 1

how to add another line to the regressin graph

Posted: Tue May 25, 2010 10:16 pm
by bit_xiaoxiao
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!

Re: how to add another line to the regressin graph

Posted: Tue May 25, 2010 11:30 pm
by startz
Make up a new series

Code: Select all

series yAlternative = 1.5*x+2
and add yAlternative to the graph.

Re: how to add another line to the regressin graph

Posted: Wed May 26, 2010 8:52 am
by bit_xiaoxiao
Make up a new series

Code: Select all

series yAlternative = 1.5*x+2
and add yAlternative to the graph.
What I don't know is just how to "add yAlternative to the graph".

should I use any command or commands with menus? how can I do it?

Re: how to add another line to the regressin graph

Posted: Wed May 26, 2010 9:06 am
by startz
What command did you use to draw the first graph?

Re: how to add another line to the regressin graph

Posted: Wed May 26, 2010 9:18 am
by bit_xiaoxiao
What command did you use to draw the first graph?
ls y x

I want to add the second line into the first plot, not bulid another plot

Re: how to add another line to the regressin graph

Posted: Wed May 26, 2010 9:19 am
by bit_xiaoxiao
What command did you use to draw the first graph?
ls y x

I want to add the second line into the first plot, not bulid another plot
I use y and x just for simplifing the problem

Re: how to add another line to the regressin graph

Posted: Wed May 26, 2010 9:25 am
by startz
What command did you use to draw the first graph?
ls y x

I want to add the second line into the first plot, not bulid another plot
I use y and x just for simplifing the problem

Code: Select all

ls y x
doesn't create a graph. What did you do to get the graph after running the regression?

Re: how to add another line to the regressin graph

Posted: Wed May 26, 2010 9:29 am
by bit_xiaoxiao
doesn't create a graph. What did you do to get the graph after running the regression?
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 graph

Re: how to add another line to the regressin graph

Posted: Wed May 26, 2010 9:44 am
by startz
doesn't create a graph. What did you do to get the graph after running the regression?
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 graph
Try something like

Code: Select all

ls y x group g x y yAlternative
then double-click on "g" and choose a scatter diagram with a regression fit line.