BEL.means | R Documentation |
Calculates blockwise empirical likelihood test for the difference of two sample means.
BEL.means(X, Y, M_1, M_2, Delta = 0)
X , Y |
vectors of data values. |
M_1 , M_2 |
positive integers specifying block length for X and Y, respectively. |
Delta |
hypothesized difference of two populations. |
A list of class "htest" containing following components: method - the character string of the test. data.name - a character string with the names of the input data. Delta0 - the specified hypothesized value of mean differences under the null hypothesis statistic - the value of the test statistic. p.value - the p-value for the test.
# Basic example
Delta0 <- 1.5
X <- arima.sim(n = 400, model = list(ar = .3))
Y <- arima.sim(n = 400, model = list(ar = .5)) + Delta0
BEL.means(X, Y, 10, 20, Delta = Delta0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.