Add Regression line to Scatter Graph

For questions regarding programming in the EViews programming language.

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

DanielArmani
Posts: 12
Joined: Wed Apr 13, 2011 4:08 am

Add Regression line to Scatter Graph

Postby DanielArmani » Wed Apr 13, 2011 8:54 am

Hi, i am new to EViews, I wonder if you can advise me how i can add regresion line to scatter graph on rogramming.

this is the program I've wrote to get scatter graph.

graph graph_rb_bats.scatpair p_rb p_bats

series are p_rb and p_bats. I dont know how to use linefit or anything elss

Thanks

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

Re: Add Regression line to Scatter Graph

Postby EViews Gareth » Wed Apr 13, 2011 8:59 am

Code: Select all

group g p_rb p_bats freeze(graph_rb_bats) g.scatpair linefit


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests