BookmarkSubscribeRSS Feed
Jay_S
Calcite | Level 5
I would like to generate a Call fx that pulls from a skewed distribution, but I am new to SAS. Right now I am able to create a RANNOR distribution only.

Right now the code reads:
VALUE=abs(int(4+sqrt(26)*rannor(10)))

But I would like the VALUE to be pulled from a skewed distribution with median/mean and mode value, instead of this normal distribution.

Thank you.
1 REPLY 1
Olivier
Pyrite | Level 9
Take a look at the documentation for the RAND function, which can pull values from various distribution, including skewed ones like Gamma.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Health and Life Sciences Learning

 

Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.

LEARN MORE

Discussion stats
  • 1 reply
  • 1164 views
  • 0 likes
  • 2 in conversation