Learn R Programming

easynem (version 1.0.3)

HSD: Compute Tukey Honest Significant Differences (single factor)

Description

The HSD() is used to Compute Tukey Honest Significant Differences for grouped data and create compare-class. This function is only applicable to single factor analysis, see HSD2 for a two factor version of the function.

Usage

HSD(data, .group, y, ...)

Value

An compare-class object.

Arguments

data

An easynem-class data.

.group

Grouping variables.

y

Dependent variable (numeric data).

...

Other parameters for TukeyHSD.

Details

To facilitate code interpretation, It is recommended to use this function in conjunction with the calc_compare function:

nem_compare <- nem |> calc_compare(.group = con_crop, y = pH, method = HSD)

See Also

Other functions related to differential analysis methods: TTest2, TTest, WilcoxTest2, WilcoxTest, KruskalTest2, KruskalTest, LSD2, LSD, HSD2.

Examples

Run this code
nem <- read_nem2(tab = nemtab, tax = nemtax, meta = nemmeta)
nem_test <- nem |>
            calc_compare(.group = Treatments,
              y = Mesorhabditis,
              method = HSD)
nem_test

Run the code above in your browser using DataLab