aov_t_pval | R Documentation |
P-value of analysis of Variance
aov_t_pval(y, g, pvdigits = 4)
y |
Response variable. |
g |
Grouping variable. |
pvdigits |
number of digits for the p-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.
df <- data.frame(g=gl(3,10),y=rnorm(30))
aov_t_pval(df$y,df$g,pvdigits=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.