Description Usage Arguments Value Examples
View source: R/compare.two.sample.R
Two sample bootstrap test for comparing different in sample1 and sample2, not necessary with same sample size
1 | compare.two.sample(sample1, sample2, fun = mean, R = 1000)
|
sample1 |
first sample |
sample2 |
second sample |
fun |
statistic (univariate) to be compared (default: |
R |
number of resamples (default: |
compare.two.sample return a list with two components, namely,
p.value: two tailed p-value for the bootstrap test
object: a "simpleboot" object allowing further analysis using other R packages, such as boot)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.