Series generator

For questions regarding programming in the EViews programming language.

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

JoaoMag
Posts: 1
Joined: Sat Oct 25, 2014 10:49 pm

Series generator

Postby JoaoMag » Sat Oct 25, 2014 11:25 pm

I want to create a set of numbers where there is a 90% chance of getting 1 and 10% of getting zero. Is there any function i can use?

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

Re: Series generator

Postby startz » Sun Oct 26, 2014 7:19 am

I want to create a set of numbers where there is a 90% chance of getting 1 and 10% of getting zero. Is there any function i can use?

Code: Select all

series s = rnd<.9


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests