Description Usage Arguments Author(s) Examples
plots a diagram for a linear model with one dichtotomous group and a metric predictor
1 2 |
fixef |
list of four coefficients b_0 and b_2, see Details |
range |
a vector of two values c(xmin, xmax) |
label |
vector of strings ("covariate", "outcome") This function plots a standard interaction diagram for a model with one covariate and two groups. This model has the following parameters: b_0 is the intercept b_2 is the slope of reference group 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 intercept as vertical bar and slope parameters as triangles. |
groups |
a vector of two strings, like c("A", "B") |
Martin Schmettow
1 | iiaplot_4(fixef(b_0 = -2, b_2 = 1.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.