kruskal_Wilcox_pval: P-value of Wilcoxon of Kruskal-Wallis test

View source: R/funciones.R

kruskal_Wilcox_pvalR Documentation

P-value of Wilcoxon of Kruskal-Wallis test

Description

P-value of Wilcoxon of Kruskal-Wallis test

Usage

kruskal_Wilcox_pval(y, g, pvdigits = 4)

Arguments

y

Response variable.

g

Grouping variable.

pvdigits

number of digits for the p-value.

Value

p-value of Wilcoxon test (when comparing two groups) or Kruskal-Wallis test (when comparing more than two groups).

Examples

df <- data.frame(g=gl(3,10),y=runif(30))
kruskal_Wilcox_pval(df$y,df$g,pvdigits=3)

angeloSdP/reportingTools documentation built on Dec. 25, 2024, 11:19 a.m.