iiaplot_1: Illustrated ANOVA

Description Usage Arguments Author(s) Examples

View source: R/betaplot.R

Description

plots a diagram for a linear model with one dichtotomous group and a metric predictor

Usage

1
2
iiaplot_1(fixef = list(b_0 = 8, b_1 = -1, b_2 = 2), groups = c("A", "B",
  "C"), label = c("group", "outcome"))

Arguments

fixef

list of three coefficients b_0, b_1, b_3, see Details

groups

a vector of three strings, like c("A", "B", "C)

label

vector of strings ("group", "outcome")

This function plots a diagram for an ANOVA model with three groups. This model has the following parameters:

b_0 is the intercept, the expected value of the reference group, i.e. the first element in argument groups ("A"). b_1 and B_2 are the mean differences

The parameters can also be given as an unnamed list, as long as the elements comply to the order.

The line plot is augmented with illustrations, showing the two group effects b_0 and b_1 as vertical bars and the slope parameters as triangles.

Author(s)

Martin Schmettow

Examples

1
iiaplot_1(fixef(b_0 = -2, b_1 = 1, b_2 = 1.5, b_3 = 1))

schmettow/betaplot documentation built on May 29, 2019, 3:41 p.m.