powered by
This function provides bootstrap approximation to the sampling distribution of the the Welch's t-statistic
boot_test(x1, x2, B = 1000, alternative = "greater")
the first sample.
the second sample.
number of resampling rounds. Default value is 1000.
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.
# NOT RUN { x1 <- rnorm(100, 0, 1) x2 <- rnorm(100, 0.5, 2) boot_test(x1, x2) # }
Run the code above in your browser using DataLab