generate broken trend

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

ch2324
Posts: 133
Joined: Fri May 10, 2013 10:52 am

generate broken trend

Postby ch2324 » Mon Jan 04, 2016 8:07 am

hi
i have 708 obs, i would like to genrate trend from obs 100 to take ( 1 2 3...), the problem the trend starts with 100 101 102....., :cry:
are there a command to do this in simple way?

Code: Select all

smpl 1 99 series t1=0 smpl 100 708 series t1=@trend+1 smpl @all

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

Re: generate broken trend

Postby EViews Gareth » Mon Jan 04, 2016 8:48 am

Rather than adding 1 to @trend, why not subtract 99? :)

ch2324
Posts: 133
Joined: Fri May 10, 2013 10:52 am

Re: generate broken trend

Postby ch2324 » Mon Jan 04, 2016 9:07 am

thanks a lot :D


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests