View source: R/correlationStatistics.R
getPv | R Documentation |
Helper function to get p-value from value and distribution mean and standard deviation
getPv(obs, ei, sdi, alternative)
obs |
Observed value |
ei |
Mean (Expected value) |
sdi |
Standard deviation |
alternative |
"two.sided", "less", or "greater" |
P-value
# Probability of observing 5 while expecting 0 with a standard deviation of 1 getPv(5, 0, 1, 'greater')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.