## replicate numbers

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

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

### replicate numbers

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.

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

### Re: replicate numbers

You seem to have answered the first one yourself (although you should learn how to multiply ).

@floor(@trend/3+1)

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

### Re: replicate numbers

Luckily , you are always there to enlighten us. thank you so much.

Code: Select all

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

question: how can add citation below my user name?

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

### Re: replicate numbers

You cannot.

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

### Re: replicate numbers

ok!.

claricia48
Posts: 1
Joined: Wed Jun 07, 2017 6:22 am

### Re: replicate numbers

EViews Gareth wrote:You seem to have answered the first one yourself Prêt bancaire
(although you should learn how to multiply ).

@floor(@trend/3+1)

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