Help using Base SAS procedures

Random binomial

Reply
JGG
N/A
Posts: 1

Random binomial

I have a simple question.
I am trying to generate a list of 100 genders (M, F) that is approx 40% female.
I've tried to use Ranbin(0,1, 0.4, gender) but it's not working for me. I'm a VERY new
user and am sure I'm doing something wrong. Please help! Thanks.
Trusted Advisor
Posts: 2,116

Re: Random binomial

When you use that format, it is

CALL RANBIN(0,1,0.4,gender);

RANBIN is both a function and a call routine. The function has 3 parameters and the CALL routine has four.
Ask a Question
Discussion stats
  • 1 reply
  • 100 views
  • 0 likes
  • 2 in conversation