Random Dummy Generation

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

PermaBear
Posts: 4
Joined: Mon Oct 24, 2011 2:02 am

Random Dummy Generation

Postby PermaBear » Fri Oct 28, 2011 8:58 am

Does anybody know of a way to generate a dummy vector randomly? Just like I use nrdn command, I want a way to generate a dummy variable randomly i.e independently of any real data.

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

Re: Random Dummy Generation

Postby EViews Gareth » Fri Oct 28, 2011 9:11 am

A vector, or a series?

PermaBear
Posts: 4
Joined: Mon Oct 24, 2011 2:02 am

Re: Random Dummy Generation

Postby PermaBear » Fri Oct 28, 2011 9:13 am

A series I guess:

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Random Dummy Generation

Postby startz » Fri Oct 28, 2011 9:17 am

Code: Select all

series DUMMY = NRND > 0

PermaBear
Posts: 4
Joined: Mon Oct 24, 2011 2:02 am

Re: Random Dummy Generation

Postby PermaBear » Fri Oct 28, 2011 9:18 am

Thanks!!!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests