Empirical likelihood for a one sample mean vector hypothesis testing {Compositional} | R Documentation |
Empirical likelihood for a one sample mean vector hypothesis testing.
el.test1(x, mu, R = 1, ncores = 1, graph = FALSE)
x |
A matrix containing Euclidean data. |
mu |
The hypothesized mean vector. |
R |
If R is 1 no bootstrap calibration is performed and the classical p-value via the χ^2 distribution is returned. If R is greater than 1, the bootstrap p-value is returned. |
ncores |
The number of cores to use, set to 1 by default. |
graph |
A boolean variable which is taken into consideration only when bootstrap calibration is performed. IF TRUE the histogram of the bootstrap test statistic values is plotted. |
Multivariate hypothesis test for a one sample mean vector. This is a non parametric test and it works for univariate and multivariate data.
A list with the outcome of the function el.test
which includes
the -2 log-likelihood ratio, the observed P-value by chi-square approximation, the final value of Lagrange multiplier λ,
the gradient at the maximum, the Hessian matrix, the weights on the observations (probabilities multiplied by the sample size) and the number of iteration performed.
In addition the runtime of the procedure is reported. In the case of bootstrap, the bootstrap p-value is also returned.
Michail Tsagris
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Giorgos Athineou <gioathineou@gmail.com>
Owen, A. (1990). Empirical likelihood ratio confidence regions. Annals of Statistics, 18, 90-120.
Owen A. B. (2001). Empirical likelihood. Chapman and Hall/CRC Press.
eel.test1, hotel1T2, james, hotel2T2, maov, el.test2, comp.test
x <- Rfast::rmvnorm(100, numeric(10), diag( rexp(10, 0.5) ) ) el.test1(x, mu = numeric(10) ) eel.test1(x, mu = numeric(10) )