Learn R Programming

simr

Power Analysis for Generalised Linear Mixed Models by Simulation.

Getting Started

A tutorial has been published in Methods in Ecology and Evolution.

Old RLRsim Binaries

If you get the following error, try reinstalling RLRsim.

> library(simr)
Loading required package: lme4
Loading required package: Matrix
Error : object ‘sigma’ is not exported by 'namespace:lme4'
Error: package or namespace load failed for ‘simr’

Copy Link

Version

Install

install.packages('simr')

Monthly Downloads

4,144

Version

1.0.11

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Green Peter

Last Published

September 11th, 2026

Functions in simr (1.0.11)

modify

Modifying model parameters.
doSim

Generate simulated response variables.
lastResult

Recover an unsaved simulation
powerCurve

Estimate power at a range of sample sizes.
extend

Extend a longitudinal model.
doTest

Apply a hypothesis test to a fitted model.
powerSim

Estimate power by simulation.
doFit

Fit model to a new response.
makeGlmer

Create an artificial mixed model object
getData

Get an object's data.
simrOptions

Options Settings for simr
simr-package

simr: Simulation-based power calculations for mixed models.
simdata

Example dataset.
print.powerSim

Report simulation results
tests

Specify a statistical test to apply