Help using Base SAS procedures

bern

Reply
Not applicable
Posts: 0

bern

how to generate bernoulli distribution with seed
Respected Advisor
Posts: 3,852

Re: bern

Posted in reply to deleted_user
see RAND function

x = RAND('BERNOULLI',p)
Not applicable
Posts: 0

Re: bern

Posted in reply to data_null__
where can I put the seed number in this statement?
Super Contributor
Posts: 359

Re: bern

Posted in reply to deleted_user
A quick search shows you use "call streaminit(123);" to set the seed.
Ask a Question
Discussion stats
  • 3 replies
  • 156 views
  • 0 likes
  • 3 in conversation