我需要找到类似于scipy.stats.norm.sf或math.erfc的R函数吗?任何帮助都会很好。我正在尝试谷歌,但还没有找到任何好的答案。谢谢您抽时间见我。保罗
发布于 2022-09-14 22:34:14
scipy.stats.norm.sf(x)
的标准等价物是
pnorm(x, lower.tail = FALSE)
math.erfc(x)
的标准等价物是
pnorm(x * sqrt(2), lower.tail = FALSE) * 2
发布于 2022-09-14 20:42:56
您需要确保它们是您所要寻找的1:1,但我建议使用pracma::erfc()
和stats::rnorm()
。
https://stackoverflow.com/questions/73722583
复制相似问题