Program a regression line in a scatter plot

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

Moderators: EViews Gareth, EViews Moderator

RDS
Posts: 85
Joined: Thu Feb 17, 2011 9:50 am

Program a regression line in a scatter plot

Postby RDS » Wed Feb 13, 2019 8:25 am

I would like to create a scatter plot between Y and X and add a regression line

graph FIG.scat Y X

Whats is the programming lines needed to add the regression line to the chart (FIG)?

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

Re: Program a regression line in a scatter plot

Postby EViews Gareth » Wed Feb 13, 2019 8:39 am

Follow us on Twitter @IHSEViews

RDS
Posts: 85
Joined: Thu Feb 17, 2011 9:50 am

Re: Program a regression line in a scatter plot

Postby RDS » Wed Feb 13, 2019 8:54 am

Perfect.

Is there a possibility to show the coefficients and the R2?

Is there a possibility to relabel the axis: for example Y is OUTPUT and X is PRICES?

RDS
Posts: 85
Joined: Thu Feb 17, 2011 9:50 am

Re: Program a regression line in a scatter plot

Postby RDS » Thu Feb 14, 2019 6:39 am

When I plot the chart, essentially they are a group of variables.
Unfortunately, if I change the sample period, also the chart changes.

Is it possible to freeze the cross-plot with the regression line as Figures?


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 3 guests