Description Usage Arguments Details Value Author(s) Examples
Performs a non parametric mean test by bootstraping. Combines all values and samples vectors of length a_data, b_data. Then calculates differences in mean to get distribution of differences in mean. Then compares observed difference with that distribution.
1 | np_mean_test(a_data, b_data, n_sim = 1000, plot = TRUE)
|
a_data |
Numeric vector of values from group a. |
b_data |
Numeric vector of values from group b. |
n_sim |
Number of times to sample groups and calcutale difference. |
plot |
(logical) Plot the distribution of differences in mean if TRUE. |
H0: No difference in mean
returns a named list containing:
diff |
All the mean differences. |
observed |
Observed mean difference. |
n_sim |
Number of simulations ran. |
p_value |
Two sided p-value for the test. |
Elio Bartos
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.