Linear Trendline based off existing series

For questions regarding programming in the EViews programming language.

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

bpuffer
Posts: 15
Joined: Fri Jun 20, 2014 7:15 am

Linear Trendline based off existing series

Postby bpuffer » Tue May 19, 2015 1:01 pm

Hi,

I am trying to create a series that contains the trendline values associated with another series. For example:

I have a quarterly series "z"; sample 1980 through 2015Q1. I would like to create series "z_trend" that contains the data that when graphed would display a linear trendline for series "z".

I want to program this so that each time I update "z" with new data and rerun the program it re-calculates the "z_trend".

How do I go about programming the calculation of the trendline?

Thanks in advance!

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

Re: Linear Trendline based off existing series

Postby EViews Gareth » Tue May 19, 2015 1:19 pm

Code: Select all

equation eqztrend.ls z c @trend eqztrend.fit z_trend


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests