Does randomisation test for the difference in means of two vectors v1 and v2.
Does randomisation test for the difference in means mu1, mu2
of two vectors
v2. Can do one or two sided tests.
permute.groups(v1, v2, alternative, nreps)
Data vector for variable 1
Data vector for variable 2
A character string specifying the alternative
hypothesis, must be one of
Number of replications used in the randomisation and generation of
the p-value. Default is
Under the null hypothesis that
mu1=mu2, the labelling of the
n1+n2 observations is unimportant.
Therefore, we can generate the null distribution for the test statistic
on whether a one
or two sided test is required) by randomly permuting the treatment labels nreps times and calculating the test statistic
each time. The p-value is calculated as suggested by Manly (2006).
The p-value is returned as
Jon Barry: Jon.Barry@cefas.co.uk
Manly BFJ (2006) Randomization, Bootstrap And Monte Carlo Methods in Biology: 3rd edition. Chapman and Hall.
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.