| LSD2 | R Documentation |
The LSD2() is used to perform "Least significant difference" for
grouped data and create compare2-class. This function is only
applicable to two-factor analysis, see LSD for a
single factor version of the function.
LSD2(data, .group1, .group2, y, ...)
data |
An |
.group1 |
Grouping variables factor 1. |
.group2 |
Grouping variables factor 2. |
y |
Dependent variable (numeric data). |
... |
Other parameters for |
To facilitate code interpretation, It is recommended to use this function in
conjunction with the calc_compare2 function:
nem_compare <- nem |> calc_compare2(.group1 = con_crop, .group2 = season, y = pH, method = LSD2)
An compare2-class object.
Other functions related to differential analysis methods: TTest2,
TTest, WilcoxTest2, WilcoxTest,
KruskalTest2, KruskalTest, LSD, HSD,
HSD2.
nem <- read_nem(tab = easynem_example("nemtab1.csv"),
tax = easynem_example("nemtax1.csv"),
meta = easynem_example("nemmeta1.csv"))
nem_test <- nem |>
calc_compare2(.group1 = con_crop, .group2 = season, y = pH, method = LSD2)
nem_test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.