powered by
Calculate p.value for x given set of null values using a Gaussian null pdf
p_val_norm(x, null.values, alternative = "two.sided")
p.value
numeric value
a numeric vector of null distribution samples
alterative test including: "two.sided" [default], "greater", and "less"
"two.sided"
"greater"
"less"
p.val = p_val_norm(1, rnorm(1000,0,1))
Run the code above in your browser using DataLab