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

3,355

Version

1.0.7

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Green Peter

Last Published

April 13th, 2023

Functions in simr (1.0.7)

tests

Specify a statistical test to apply
simr-package

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

Options Settings for simr
doSim

Generate simulated response variables.
extend

Extend a longitudinal model.
doTest

Apply a hypothesis test to a fitted model.
doFit

Fit model to a new response.
powerSim

Estimate power by simulation.
makeGlmer

Create an artificial mixed model object
getData

Get an object's data.
modify

Modifying model parameters.
powerCurve

Estimate power at a range of sample sizes.
lastResult

Recover an unsaved simulation
simdata

Example dataset.
print.powerSim

Report simulation results