简体   繁体   中英

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? I'm trying to solve the power 1-beta from the value of qnorm(1-beta). Thank you.

The pnorm function serves as the inverse for 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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