powered by
Calculate p.value for x given a set of null values using ranks
p_val_rank(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_rank(1, 1:100)
Run the code above in your browser using DataLab