简体   繁体   English

R中征费分布的参数

[英]Parameters for a Levy distribution in R

Can someone help me figure out how I can get parameter estimates for a levy distribution using R? 有人可以帮我弄清楚如何使用R获得征税分布的参数估计吗? Unlike the normal distribution and Student T distribution which has functions nFit(x) from the package fBasics and stdFit(x) respectively from package fGarch , the Levy distribution doesn't seem to have the same ability. 与正态分布和Student T分布fGarch ,Levy分布似乎没有相同的功能,正态分布和Student T分布分别具有来自fBasics软件包的函数nFit(x)来自fBasics软件包的stdFit(x)的功能。 I am trying to fit my data set to the levy distribution so I need a function in R that will give me good estimates for the delta and gamma parameters. 我正在尝试将我的数据集调整为征税分布,因此我需要R中的一个函数,该函数可以为delta和gamma参数提供良好的估计。

I was able to use the fBasics and fGarch packages to calculate the parameters(mu and sigma) for a normal distribution and (mu, sd, and nu) for a symmetric student T distribution. 我能够使用fBasicsfGarch软件包来计算fGarch的参数(mu和sigma),以及对称学生T分布的参数(mu,sd和nu)。 Now I am looking to calculate the following parameters for a Levy distribution : delta and gamma. 现在,我正在计算Levy分布的以下参数:增量和伽玛。 Delta is the location parameter and gamma is the scale parameter. Delta是位置参数,gamma是比例参数。

I tried to use the fitdistr function from MASS to fit it by doing the following: 我尝试通过执行以下操作来使用MASSfitdistr函数:

> fitdistr(x,dlevy,list(m = 0, s = 1))
Error in densfun(x, parm[1], parm[2], ...) : some y <= m

however, now I am stuck. 但是,现在我被困住了。 I keep getting the above "Error" message. 我不断收到上述“错误”消息。 Assuming there is no built in function for the Levy distribution, any ideas how to proceed? 假设Levy发行版没有内置功能,有什么想法如何进行?

Thanks in advance! 提前致谢!

看起来VGAM包中的levy功能就是您所需要的( 单击 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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