Skip to contents

This function performs Tukey HSD to a data frame of dimension scores where more than one corpus have been anaylsed. If using the result of dtag_tbl, the data frame needs to be changed to a long format, e.g. by using the pivot_longer(tbl , contains("Dimension"), names_to = "dimension", names_transform = list(dimension = as.factor)), with an extra column to identify the source corpus.

Usage

d_Tukey_hsd(df, dimension = "dimension", corpus = "corpus")

Arguments

df

A data frame of dimension scores in long format, with a column for identifying the input corpus.

dimension

The dimension for the Tukey HSD test.

corpus

The corpus for the Tukey HSD test.

Value

A data frame with the Tukey HSD test results.