本文介绍了pchisq 增加小数精度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法提高概率的小数精度分布.
Is there any way to increase the decimal accuracy for probability distributions.
> 1-pchisq(90, 5) [1] 0但是:
> pchisq(90, 5, lower.tail=F) [1] 6.71932e-18 推荐答案如果您正在执行 1 - foo 以获得分布的上尾,那么不要.而是使用 lower.tail 参数:
If you are doing the 1 - foo to get the upper tail of the distribution, then don't. Instead use the lower.tail argument:
> pchisq(90, 5, lower.tail = FALSE) [1] 6.719319e-18更多推荐
pchisq 增加小数精度
发布评论