简体   繁体   English

R:如何在给定 qnorm(x)=-2 的值的情况下找到 x

[英]R: how to find x given the value of qnorm(x)=-2

Given the value of qnorm(x)=-2, how to find x using R?给定 qnorm(x)=-2 的值,如何使用 R 找到 x? I'm trying to solve the power 1-beta from the value of qnorm(1-beta).我正在尝试从 qnorm(1-beta) 的值中求解幂 1-beta。 Thank you.谢谢你。

The pnorm function serves as the inverse for qnorm . pnorm函数用作pnorm的逆qnorm Ergo尔格

> pnorm(qnorm(0.5))
[1] 0.5

So to your question所以你的问题

> pnorm(-2)
[1] 0.02275013
> qnorm(0.02275013)
[1] -2
> 1 - pnorm(-2)
[1] 0.9772499

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

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