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

Postby ch2324 » Sun Apr 16, 2017 11:16 am

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: 11213
Joined: Tue Sep 16, 2008 5:38 pm

Re: replicate numbers

Postby EViews Gareth » Sun Apr 16, 2017 2:07 pm

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

@floor(@trend/3+1)
Follow us on Twitter @IHSEViews

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

Re: replicate numbers

Postby ch2324 » Mon Apr 17, 2017 5:54 am

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:

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

Re: replicate numbers

Postby EViews Gareth » Mon Apr 17, 2017 7:00 am

You cannot.
Follow us on Twitter @IHSEViews

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

Re: replicate numbers

Postby ch2324 » Mon Apr 17, 2017 9:28 am

ok!. :)

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

Re: replicate numbers

Postby claricia48 » Thu Jun 08, 2017 2:32 am

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.


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 2 guests