View source: R/SDS100_pnull_shuffle_resample_pairs.R
pnull | R Documentation |
Calculates the proportion of points in a vector greater than a specified value
pnull(obs_stat, null_dist, lower.tail = TRUE)
obs_stat |
An "observed statistic" value which will be used to assess how many points in the null_dist are greater than this value. |
null_dist |
A vector of data consistent with a null hypothesis. |
lower.tail |
A Boolean indicating whether one should return the proportion of points less than or equal to the obs_stat value. |
set.seed(100)
obs_stat <- 3
null_dist <- rnorm(1000)
pnull(obs_stat, null_dist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.