Search found 133 matches

by ch2324
Fri Mar 04, 2016 9:32 am
Forum: Suggestions and Requests
Topic: four suggestions
Replies: 12
Views: 10016

Re: four suggestions

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...
by ch2324
Thu Mar 03, 2016 1:02 pm
Forum: Suggestions and Requests
Topic: four suggestions
Replies: 12
Views: 10016

four suggestions

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 o...
by ch2324
Mon Feb 29, 2016 1:18 pm
Forum: Programming
Topic: coefs factors by loop
Replies: 12
Views: 7268

Re: coefs factors by loop

exactlly what that i need, i learned many things from you Mr Gareth many thanks!
(**) EViews 9 Command Ref, chap 11, pp 264-265
matrix xsub = x.@row(@fill(1, 3, 4))
extracts the first, third, and fourth rows of the matrix X into the matrix XSIB. XSIB should be xsub.
by ch2324
Mon Feb 29, 2016 11:26 am
Forum: Programming
Topic: coefs factors by loop
Replies: 12
Views: 7268

Re: coefs factors by loop

thanks!
can you help me to simplify the code by "if", it's just to understand the methodologie of the loop by if. :roll:
by ch2324
Mon Feb 29, 2016 10:15 am
Forum: Programming
Topic: coefs factors by loop
Replies: 12
Views: 7268

Re: coefs factors by loop

1-sorry, is another question :oops: ok!, how can combined vector to the matrix by function? 2-vector v1 = @vec(m1), extract column to the vector, but how can extract by row to the vector, i have used @rows but it not work. 3- it's solved but can i use if to simplify by "if" matrix(4,3) m e...
by ch2324
Mon Feb 29, 2016 9:55 am
Forum: Programming
Topic: coefs factors by loop
Replies: 12
Views: 7268

Re: coefs factors by loop

1)i would just place the four coefs of factors "c(3), c(4), c(5), c(6)" in the first column, and "c(7), c(8), c(9), c(10)" in the second column, ...etc
2) can i combined three vector(3) in the matrix(3,3) by function?
by ch2324
Sun Feb 28, 2016 4:33 am
Forum: Programming
Topic: coefs factors by loop
Replies: 12
Views: 7268

Re: coefs factors by loop

by this code i get one value of factors in m(1,1) but all others values are constant matrix(4,3) m equation eq eq.ls y y(-1) y(-2) @expand(@month) for !i=1 to 4 for !j=1 to 3 for !k= 3 to 12 if !i>=1 and !j=1 and !k=!i+2 then m(!i,!j)=eq.@coef(!k) if !i>=1 and !j=2 and !k=!i+6 then m(!i,!j)=eq.@coef...
by ch2324
Sat Feb 27, 2016 12:27 pm
Forum: Programming
Topic: coefs factors by loop
Replies: 12
Views: 7268

Re: coefs factors by loop

it work, thanks!. i use this code but a get a constant value in the matrix: matrix(4,3) m equation eq eq.ls y y(-1) y(-2) @expand(@month) for !i=1 to 4 for !j=1 to 3 !k=m(!i,!j) m(!i,!j)=eq.@coef(!k) next next i would just put the factors coefs by column in the matrix. (*) there is a tini mistake in...
by ch2324
Sat Feb 27, 2016 7:53 am
Forum: Programming
Topic: coefs factors by loop
Replies: 12
Views: 7268

coefs factors by loop

Hi everybody this code extract coefs factors in the vectors but i get a constant value in the vectors 0.605271, I have a fault somewhere :roll: vector(12) v equation eq eq.ls y y(-1) y(-2) @expand(@month) for !i= 1 to 12 for !j=3 to 14 v(!i)=eq.@coef(!j) next next any help!
by ch2324
Thu Feb 25, 2016 11:42 am
Forum: Data Manipulation
Topic: generate trend between two date
Replies: 22
Views: 13251

Re: generate trend between two date

thanks alot! Mr Gareth, Your help was very useful. :D
i'm really enjoyed! with this software. :)
by ch2324
Thu Feb 25, 2016 9:00 am
Forum: Data Manipulation
Topic: generate trend between two date
Replies: 22
Views: 13251

Re: generate trend between two date

you understood me Mr Gareth.
I would highly appreciate if you could help me! :oops:
by ch2324
Thu Feb 25, 2016 3:59 am
Forum: Data Manipulation
Topic: generate trend between two date
Replies: 22
Views: 13251

Re: generate trend between two date

1st code: series t = @recode(@during("1990m1 1997m6") or @during("2000m1 2002m12"), @trend+1, 0) smpl 2000m1 2002m12 series t=t-120 smpl @all in my simple case i can use smpl no problem, but suppose if i have multi period to make trend i will always make smpl date1 date2, series...
by ch2324
Wed Feb 24, 2016 2:26 pm
Forum: Data Manipulation
Topic: generate trend between two date
Replies: 22
Views: 13251

Re: generate trend between two date

1st code: when i substruct 119 from period "1990m1 1997m6" trend will be this -119 -118 -197....-30. from period "2000m1 2002m12" the code work. trend take 1 2 3....36. series t = @recode(@during("1990m1 1997m6") or @during("2000m1 2002m12"), @trend-119, 0) b...
by ch2324
Wed Feb 24, 2016 1:33 pm
Forum: Data Manipulation
Topic: generate trend between two date
Replies: 22
Views: 13251

Re: generate trend between two date

this code generate trend for period 1990m1 1997m6 (trend take 0 1 2 3.....89), but from 2000m1 2002m12 it take this value 120 121 122.....155. i would like this: from 1990m1 1997m6 take 1 2 3 4.... from 2000m1 2002m12 take 1 2 3 4.... other period take 0 series t = @recode(@during("1990m1 1997m...
by ch2324
Wed Feb 24, 2016 1:02 pm
Forum: Data Manipulation
Topic: generate trend between two date
Replies: 22
Views: 13251

Re: generate trend between two date

another question :oops:
generate trend:
the 1st year take trend
the 2nd year take 0
the 3rd year take trend
the 4th take 0.....and so on.

Go to advanced search