Learn R Programming

aelab (version 1.1.0)

ks_test: ks_test

Description

Perform Kruskal-Wallis test followed by Dunn post-hoc test (Bonferroni correction) with compact letter display.

Usage

ks_test(df, variable_name, group)

Value

A named list with elements ks_results, dunn_results,

mean_summary, and compact_letters.

Arguments

df

A data frame.

variable_name

Name of the response variable column (string).

group

Name of the grouping column (string).

Examples

Run this code
df <- data.frame(
  grp = rep(c("A","B","C"), each = 5),
  val = c(1,2,1,2,1, 3,4,3,4,3, 5,6,5,6,5)
)
ks_test(df, "val", "grp")

Run the code above in your browser using DataLab