Description Usage Arguments Examples
View source: R/wrap.anova.planned.R
Performs planned contrasts for a one-way, between-subjects ANOVA. This function assumes categorical (i.e., unordered) independent variables, fixed effects, and equal variance across conditions.
1 | wrap.anova.planned(dv1, iv1, levels, weights)
|
dv1 |
Column vector containing the dependent variable |
iv1 |
Column vector containing the between-subjects independent variable |
levels |
String vector containing two or more factor levels of the independent variable |
weights |
Numeric vector containing the contrast weights. Must sum to +1 and -1. |
1 2 3 4 5 6 7 | ## Contrast between two levels of the independent variable
wrap.anova.planned(dv1 = bdata$DV1, iv1 = bdata$IV2, levels = c("PhotoA", "PhotoB"),
weights = c(-1, 1))
## Contrast between three levels of the independent variable
wrap.anova.planned(dv1 = bdata$DV1, iv1 = bdata$IV2, levels = c("PhotoA", "PhotoB",
"PhotoC"), weights = c(-1, 0.5, 0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.