Description Usage Arguments Value Examples
multAovInteraction provides descriptive summary of multiple depedent variables, stratified by two grouping variables, along with p-values from aov() models testing the main effects and interaction between the two grouping variables.
1 2 | multAovInteraction(data, grp_var1, grp_var2, varlist, round = 2, pround = 3,
includeN = F)
|
data |
Input dataset |
grp_var1 |
Variable name of variable 1 |
grp_var2 |
Variable name of variable 2 |
varlist |
Vector of variable names to be used as the DV(s) |
round |
Number of decimals for descriptive statistics |
pround |
Number of decimals for p-values |
includeN |
Logical, whether to include the N for descriptives |
data.frame containing the output summary
1 2 3 4 5 6 | #df<-data.frame(grp1=sample(c(1,2),100,replace=TRUE),
# grp2=sample(c(1,2,3),100,replace=TRUE),
# var1=rnorm(100,32,12),
# var2=runif(100),
# var3=rnorm(100))
#multAovInteraction(df, grp_var1 = "grp1", grp_var1 = "grp2", varlist = c("var2","var3","var1"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.