plotting trendline to scatter graph

For questions regarding programming in the EViews programming language.

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

BT454
Posts: 44
Joined: Wed Aug 02, 2017 6:07 am

plotting trendline to scatter graph

Postby BT454 » Tue Mar 26, 2019 9:02 am

Good morning,
I'm coding a scatter plot to show the relationship between storage inventories (x axis) and gas prices (y axis).
I have made the graph, and now I'd like to plot a trend-line on the graph fitted to a third or fourth order polynomial, describing the relationship with price as the dependent variable (y) and inventories as the independent variable (x).
I can create an equation using the PDL function, but I'm not sure how to plot it.
Is this possible? Is there a better way than using PDL?
Thank you again!
Bob

BT454
Posts: 44
Joined: Wed Aug 02, 2017 6:07 am

Re: plotting trendline to scatter graph

Postby BT454 » Tue Mar 26, 2019 9:52 am

Hi again,
I found the auxillary_spec functions (linefit, etc) and this took care of it.
Sorry for the false alarm!
Thanks agian


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests