gpt4 book ai didi

r - Excel 函数 =NORM.S.INV(rand()) 在 R 中的函数是什么?

转载 作者:行者123 更新时间:2023-12-04 21:19:03 26 4
gpt4 key购买 nike

关闭。这个问题需要debugging details .它目前不接受答案。












编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将帮助其他人回答问题。


2年前关闭。







Improve this question




我需要转换 Excel 函数 =NORM.S.INV(rand())。我尝试使用 rnorm(1000,0,1),但从分布的角度来看,结果似乎并不正确。 Excel 的 NORM.S.INV(rand()) 的 R 函数应该是什么?

我想要 rnorm(1,0,1) 或 qnorm(runif(1)) 的分布

谢谢你的帮助!

最佳答案

使用 NORM.S.INV() 您可以获得正态分布的分位数。我不确定你为什么要从随机生成的变量中获得这个。 qnorm()给你正态分布的分位数,它相当于 R 中的 NORM.S.INV()。使用 rnorm()您生成正态分布的随机变量。
当然,您可以更改非标准正态分布随机变量的均值和标准差。

关于r - Excel 函数 =NORM.S.INV(rand()) 在 R 中的函数是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60859132/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com