简体   繁体   中英

How to calculate the expected value of a given distribution in SAS

For example, gamma(2,3) is given. Is there any function in SAS like ExpectedValue("Gamma",2,3) to give the expected value of the distribution. I have googled for a while and no satisfactory answer found.

I don't think there is. Given your particular example, the solution is

Mean_Gamma = 2 X 3;

If your only interested in the Gamma function you make your own function using PROC FCMP or you could simulate a distribution and calculate the average.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM