Learn R Programming

MultANOVA (version 1.0.1)

MultLSD: Multiple Least-Squares Difference tests (MultLSD)

Description

Performs the Multiple Least-Squares Difference tests of a term from the model defined by formula as defined in Mahieu & Cariou (2025).

Usage

MultLSD(formula, design, responses, tested.term)

Value

A symmetric matrix having as rows and columns as there is levels of the tested.term and that contains the pairwise fdr corrected p-values of the MultLSD tests.

Arguments

formula

A formula with no left term that specify the model from the elements of the design argument.

design

A data.frame that contains only factors specifying the design on which rely the specified model of formula argument.

responses

A matrix or data.frame that contains only numerics or integers being the responses variables to be explained by the model from formula.

tested.term

A character specifying the term from formula for which the MultLSD tests must be performed.

References

Mahieu, B., & Cariou, V. (2025). MultANOVA Followed by Post Hoc Analyses for Designed High‐Dimensional Data: A Comprehensive Framework That Outperforms ASCA, rMANOVA, and VASCA. Journal of Chemometrics, 39(7). tools:::Rd_expr_doi("https://doi.org/10.1002/cem.70039")

Examples

Run this code
data(OTU)
lsd=MultLSD(~Lot+Atm+Time,OTU[,1:4],OTU[,-c(1:4)],"Time")
print(lsd)

Run the code above in your browser using DataLab