Page 1 of 1

four suggestions

Posted: Thu Mar 03, 2016 1:02 pm
by ch2324
Hi everybody
1) could you add a button "resample= @all " beside sample in the workfile to make easy to resample the data when i use "smpl date1 date2".
2) make "select all" when i clic in the right mouse, to select all proram (i can use CTRL+A).
3) make restore button or by right clic in mouse to restore defaut graph, (when i zoom in the graph i can not restore defaut graph :cry: !!!!!).
4) make function for differenced lag "@dlag(x,n1,n2, [s])" "x= series, n1=the start of d(x(n1)) , n2= the arrival of d(x(n2)), s=smpl", if i would have two diff laged variables i will put n1=1 and n2=2.
four mini suggestions.

Re: four suggestions

Posted: Thu Mar 03, 2016 1:25 pm
by EViews Gareth
I do not understand 3) and 4)

Re: four suggestions

Posted: Thu Mar 03, 2016 3:27 pm
by EViews Glenn
I think the answer to 3 is hit the ESC key. I don't understand 4 either.

Re: four suggestions

Posted: Fri Mar 04, 2016 9:32 am
by ch2324
3-Great!
4-generate multi series differenced lag:
n1=represent the first number (order) that the series to be laged, and n2=the last
suppose i would to have 4 series diff lag, i will put @dlag(x,1,4) this function will generate four series diff lag d(@lag(x,1)),....,d(@lag(x,4)).
now suppose i would to start with the second order of lag i will put @dlag(x,2,4), this function will generate three series diff lag d(@lag(x,2)),....,d(@lag(x,4))
it would be nice if you can make function for @lag(x,n1x2,[s]), because @lag(x,n) generate just one order to be laged.
5- another question: this code generate 4 lags and diff lags, it can not put all y{!i} and dy{!i} in the group it put just the last series (y4 and dy4) in the group. any idea to solve this.

Code: Select all

for !i=1 to 4 series y{!i}=@lag(y,!i) series dy{!i}=d(y{!i}) group lagy y{!i}* group dlagy dy{!i}* next

Re: four suggestions

Posted: Fri Mar 04, 2016 9:38 am
by EViews Gareth
5:

Code: Select all

group lagg group dlagg for !i=1 to 4 series y{!i}=@lag(y,!i) series dy{!i}=d(y{!i}) lagg.add y{!i} dlagg.add dy{!i}

Re: four suggestions

Posted: Fri Mar 04, 2016 9:48 am
by ch2324
thanks! very much Mr Gareth :D
6-when i generate series and regrouped after i delete the series generated, gourp will be filled by NA obs. why!

Re: four suggestions

Posted: Fri Mar 04, 2016 10:07 am
by EViews Gareth
Don't understand the question.

Re: four suggestions

Posted: Fri Mar 04, 2016 10:17 am
by ch2324
if i delete all series generated by the code in my workfile, the group lagg and dlagg will be with NA obs.!

Re: four suggestions

Posted: Fri Mar 04, 2016 10:27 am
by EViews Gareth
What would you expect them to be filled with?

Re: four suggestions

Posted: Fri Mar 04, 2016 10:29 am
by startz
A group is a collection of series. If you delete the series what would you expect the group to show?

Re: four suggestions

Posted: Fri Mar 04, 2016 10:33 am
by ch2324
not understand the question, to make graph by group and remove unnecessary series in my work file

Re: four suggestions

Posted: Fri Mar 04, 2016 10:35 am
by startz
Data is stored in series. When you get rid of the series, you get rid of the data.

Re: four suggestions

Posted: Fri Mar 04, 2016 10:37 am
by ch2324
Got it! thanks! Mr startz and Mr Gareth.