hello
is there any command to create series with binary distribution?
something like @rnd for normal distribution
thanks in advance!
any command to create series with binary distribution?
Moderators: EViews Gareth, EViews Moderator
-
- Posts: 8
- Joined: Mon Apr 08, 2013 12:23 pm
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
-
- EViews Developer
- Posts: 2672
- Joined: Wed Oct 15, 2008 9:17 am
Re: any command to create series with binary distribution?
For a binary, just use @rnd (note that @rnd is a random uniform, not normal) to create a dummy using the desired success probability, as in
will generate a (0, 1) variable with success probability p.
Code: Select all
series binary = @rnd > (1-p)
will generate a (0, 1) variable with success probability p.
-
- Posts: 8
- Joined: Mon Apr 08, 2013 12:23 pm
Re: any command to create series with binary distribution?
EViews Glenn wrote:For a binary, just use @rnd (note that @rnd is a random uniform, not normal) to create a dummy using the desired success probability, as inCode: Select all
series binary = @rnd > (1-p)
will generate a (0, 1) variable with success probability p.
Great!
thanks a lot
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 8 guests