powered by
Compute empirical p-values
empirical_pval(t_rep, t, alternative = c("two.sided", "less", "greater"))
Vector of samples from a distribution.
Observation (numeric scalar).
Indicates the alternative hypothesis: must be one of "two.sided", "greater" or "less".
Empirical p-value.
# NOT RUN { empirical_pval(rnorm(1e2), 2) # }
Run the code above in your browser using DataLab