Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

makeDefaultMatrix.fnc

Create model matrix with main effects only


Description

Creates a model matrix with main effects only

Usage

makeDefaultMatrix.fnc(model, n = 100, conditioningPred = "", 
                      conditioningValue = NULL, control = NA)

Arguments

model

A model fit with lmer

n

integer specifying number of points to be plotted on X-axis

conditioningPred

name of predictor entering into interaction

conditioningValue

vector of values (numeric or factor level names) to be shown for interaction

control

a two-element list (predictor, value) specifying an additional predictor to be fixed to the given value in a partial effect plot. May be useful for hand-made plots for three-way interactions.

Details

not intended for independent use

Value

a (model) matrix

Note

not intended for independent use

Author(s)

R. H. Baayen

See Also

See Also as plotLMER.fnc

Examples

## Not run: not intended for independent use

languageR

Analyzing Linguistic Data: A Practical Introduction to Statistics

v1.5.0
GPL (>= 2)
Authors
R. H. Baayen <harald.baayen@uni-tuebingen.de>, Elnaz Shafaei-Bajestan <elnaz.shafaei-bajestan@uni-tuebingen.de>
Initial release
2019-01-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.