SAS中文论坛

标题: 求教:随机取数另类问题.... [打印本页]

作者: shiyiming    时间: 2009-5-1 15:49
标题: 求教:随机取数另类问题....
是这样的:
    我用@risk拟合出我们这边“住院费用”函数模型为Pearson6分布,同时得到了函数的三个参数α1 α2 β
    然后,希望利用SAS的randgen,随机生成一个40个函数值的样本
    结果,SAS中木有Pearson6函数....汗死...
      所以,我只能找到这个函数的function:...(插图片插不进来....)
      希望通过SAS语句把这个function编写出来,然后用40个随机数字代进去,得到40个函数值(应该可以吧:)
   可是。。。。
   这个函数怎么编写啊?又是次方、又是微分...
有高手指点下看看什么参考资料吗?
作者: shiyiming    时间: 2009-5-1 21:00
标题: Re: 求教:随机取数另类问题....
just for your reference:

pearson6 function is a function of x & Beta(alpha,beta). Beta(alpha,beta) is an available function in SAS. Hence, it should be no problem to give a formula without computing intergrals.

I have never heard of Pearson6 but from the plot, i see it shares lots of common with Gamma. is that right?

Thanks
作者: shiyiming    时间: 2009-5-1 21:26
标题: Re: 求教:随机取数另类问题....
我也是刚才网上找到Pearson type VI Distribution..
<!-- m --><a class="postlink" href="http://en.wikipedia.org/wiki/Beta_prime_distribution">http://en.wikipedia.org/wiki/Beta_prime_distribution</a><!-- m -->
看了一下~~比较累人~~




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2