lmerSimple: lmerSimple

Description Usage Arguments Details Value Examples

Description

A wrapper function for lmer models. The input are only character vectors. the function can therefore be run over lists of character vectors.

Usage

1
lmerSimple(criterion, fixed, random, interaction, cluster, data)

Arguments

criterion

The value that is predicted.

fixed

The fixed part of the multilevel-model. Can be variables on any level.

random

The random part of the multilevel-model. Can be variables on any level.

interaction

The interaction variables. Please enter as interaction term in lmer format.

cluster

The cluster variable in the data frame.

data

The data set.

Details

The model assumes always random intercepts.

Value

Returns an lmer model.

Examples

1
2
3
library(lme4)
fit <- lmerSimple("Reaction", "Days", "Days", "", "Subject", sleepstudy)
fit

kthorstmann/horst documentation built on May 20, 2019, 7:04 p.m.