aov_t_pval: P-value of analysis of Variance

View source: R/funciones.R

aov_t_pvalR Documentation

P-value of analysis of Variance

Description

P-value of analysis of Variance

Usage

aov_t_pval(y, g, pvdigits = 4)

Arguments

y

Response variable.

g

Grouping variable.

pvdigits

number of digits for the p-value.

Value

p-value of t-test when comparing two groups or p-value of the analysis of variance test aov(y~g) when comparing more than two groups. For comparing two groups t.test is preferred as it allows for different variances in each group.

Examples

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

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