View source: R/TreeOrderTests.R
TreeLRT | R Documentation |
Performs a likelihood ratio test for testing the equality of means against tree ordered alternatives.
TreeLRT(sample_data, significance_level, n.boot = 1e+05, seed = NULL)
sample_data |
A list of numeric vectors. The first element represents the control group, the others represent treatment groups. |
significance_level |
A numeric value between 0 and 1 specifying the significance level for the test (e.g., 0.05). |
n.boot |
Number of bootstrap replications to estimate the critical value (default is 100000). |
seed |
Optional random seed for reproducibility. |
This test compares the null hypothesis of equal means for all groups to the alternative that the control group mean is less than or equal to the treatment group means under the tree order restriction.
The likelihood ratio statistic is computed using constrained maximum likelihood estimates under the null and tree ordered alternative hypotheses. The critical value is estimated by a bootstrap procedure.
A character string with the critical value, the LRT test statistic, and the test decision.
Subha Halder
Halder, Mondal, and Kumar (2025) "Testing Against Tree Ordered Alternatives in One-way ANOVA" <https://arxiv.org/abs/2507.17229>
# Generate data
set.seed(456)
control <- rnorm(10, mean = 5)
treatment1 <- rnorm(10, mean = 6)
treatment2 <- rnorm(10, mean = 7)
sample_data <- list(control, treatment1, treatment2)
# Run LRT at 5% significance level
TreeLRT(sample_data, 0.05, n.boot = 1000)
TreeLRT(sample_data, 0.05, n.boot = 100000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.