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

makeGlmer

Create an artificial mixed model object


Description

Make a merMod object with the specified structure and parameters.

Usage

makeGlmer(formula, family, fixef, VarCorr, data)

makeLmer(formula, fixef, VarCorr, sigma, data)

Arguments

formula

a formula describing the model (see glmer).

family

type of response variable (see family).

fixef

vector of fixed effects

VarCorr

variance and covariances for random effects. If there are multiple random effects, supply their parameters as a list.

data

data.frame of explanatory variables.

sigma

residual standard deviation.


simr

Power Analysis for Generalised Linear Mixed Models by Simulation

v1.0.5
GPL (>= 2)
Authors
Green Peter [aut, cre] (<https://orcid.org/0000-0002-0238-9852>), MacLeod Catriona [aut], Alday Phillip [ctb]
Initial release

We don't support your browser anymore

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