wrap.simple: ANOVA (simple main effects)

View source: R/wrap.simple.R

wrap.simpleR Documentation

ANOVA (simple main effects)

Description

Computes simple main effects for a two-way, between-subjects ANOVA. The function delegates the primary computations to testInteractions. Note that this function assumes categorical (i.e., unordered) independent variables and fixed effects. In the output, hp2 denotes partial eta squared.

Usage

wrap.simple(dv1, iv1, iv2, adjustment = "none")

Arguments

dv1

Column vector containing the dependent variable

iv1, iv2

Column vectors containing the between-subjects independent variables. The function will test for simple main effects of iv1 separately at each level of iv2.

adjustment

Character string representing the method of p value adjustment ("none", "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", or "fdr").

See Also

testInteractions

Examples

wrap.simple(dv1 = bdata$DV5, iv1 = bdata$IV1, iv2 = bdata$IV2)


michaelkardas/bwrappers documentation built on Nov. 13, 2022, 1:14 a.m.