multAovInteraction: multAovInteraction

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
multAovInteraction(data, grp_var1, grp_var2, varlist, round = 2, pround = 3,
  includeN = F)

Arguments

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

Value

data.frame containing the output summary

Examples

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"))

TaylorAndrew/atAnalyze documentation built on May 9, 2019, 4:21 p.m.