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,442

Version

1.0.10

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Green Peter

Last Published

August 1st, 2026

Functions in simr (1.0.10)

doSim

Generate simulated response variables.
getData

Get an object's data.
lastResult

Recover an unsaved simulation
makeGlmer

Create an artificial mixed model object
tests

Specify a statistical test to apply
modify

Modifying model parameters.
simr-package

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

Options Settings for simr
powerSim

Estimate power by simulation.
powerCurve

Estimate power at a range of sample sizes.
simdata

Example dataset.
print.powerSim

Report simulation results
doFit

Fit model to a new response.
doTest

Apply a hypothesis test to a fitted model.
extend

Extend a longitudinal model.