Help using Base SAS procedures

bern

Reply
N/A
Posts: 0

bern

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

Re: bern

see RAND function

x = RAND('BERNOULLI',p)
N/A
Posts: 0

Re: bern

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

Re: bern

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