Hi Fellow Statalisters,
I am trying, unsuccessfully, to replicate the results when using R's qnorm() in Stata. qnorm() is R's equivalent to Stata's invnormal(), but it takes 3 parameters qnorm(p, mean = 0, sd = 0), where p is the signficance level.
In Stata, invnormal(p) just takes the p value.
Here is the code in R and the resulting values:
[1] -0.107329
[1] -0.1821473
[1] 0.1521513
[1] 0.2269696
I would be grateful for some help on this!
Thanks!
Ariel
I am trying, unsuccessfully, to replicate the results when using R's qnorm() in Stata. qnorm() is R's equivalent to Stata's invnormal(), but it takes 3 parameters qnorm(p, mean = 0, sd = 0), where p is the signficance level.
In Stata, invnormal(p) just takes the p value.
Here is the code in R and the resulting values:
Code:
qnorm(0.025, 0.0224111282843895, sqrt(0.0043818))
Code:
qnorm(0.001, 0.0224111282843895, sqrt(0.0043818))
Code:
qnorm(1-0.025, 0.0224111282843895, sqrt(0.0043818))
Code:
qnorm(1-0.001, 0.0224111282843895, sqrt(0.0043818))
I would be grateful for some help on this!
Thanks!
Ariel
Comment