powered by
Convenient function for calculating the two-sided p-value of the mean.
stat_mean_pval(x, na.rm = TRUE, n_min = 2, test_mean = 0)
A p-value.
(numeric) vector of numbers we want to analyze.
numeric
(flag) whether NA values should be removed from x prior to analysis.
flag
NA
x
(numeric(1)) a minimum number of non-missing x to estimate the p-value of the mean.
numeric(1)
(numeric(1)) mean value to test under the null hypothesis.
stat_mean_pval(sample(10)) stat_mean_pval(rnorm(10), test_mean = 0.5)
Run the code above in your browser using DataLab