Page 1 of 1

replicate numbers

Posted: Sun Apr 16, 2017 11:16 am
by ch2324
Hi,
1/how can replicate odd and even numbers: like this 0 2 4 6, 0 2 4 6..., same for odd numbers.
series oddn=@trend+1+@trend
series evn=@trend+1+@trend+1
2/i have workfile undated, i would like to generate series named tends like this: 1 1 1, 2 2 2, 3 3 3...etc.

any help.

Re: replicate numbers

Posted: Sun Apr 16, 2017 2:07 pm
by EViews Gareth
You seem to have answered the first one yourself (although you should learn how to multiply :P ).

@floor(@trend/3+1)

Re: replicate numbers

Posted: Mon Apr 17, 2017 5:54 am
by ch2324
Luckily , you are always there to enlighten us. :) thank you so much.

Code: Select all

series oddn=2*@trend+1
series evn=2*@trend
series repodd=@mod(2*@trend+1,8)
series repevn=@mod(2*@trend,8)

question: how can add citation below my user name? :mrgreen:

Re: replicate numbers

Posted: Mon Apr 17, 2017 7:00 am
by EViews Gareth
You cannot.

Re: replicate numbers

Posted: Mon Apr 17, 2017 9:28 am
by ch2324
ok!. :)

Re: replicate numbers

Posted: Thu Jun 08, 2017 2:32 am
by claricia48
EViews Gareth wrote:You seem to have answered the first one yourself Prêt bancaire
(although you should learn how to multiply :P ).

@floor(@trend/3+1)

Merci beaucoup de nous avoir apporté ces compléments d'informations.