boot_test | R Documentation |
This function provides bootstrap approximation to the sampling distribution of the the Welch's t-statistic
boot_test(x1, x2, B = 1000, alternative = "greater")
x1 |
the first sample. |
x2 |
the second sample. |
B |
number of resampling rounds. Default value is 1000. |
alternative |
the alternative hypothesis: "greater" for upper-tailed, "less" for lower-tailed, and "two.sided" for two-sided alternative. |
the p-value of the bootstrap_t test.
x1 <- rnorm(100, 0, 1)
x2 <- rnorm(100, 0.5, 2)
boot_test(x1, x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.