MixedModelPower: Power calculator

View source: R/MixedModelPower.R

MixedModelPowerR Documentation

Power calculator

Description

To perform the power analysis for the given model

Usage

MixedModelPower(Model, FixEffect = NULL, Methods = method = c("z", "t", "f", "chisq", "anova", "lr", "sa",
  "kr", "pb"), Nsim = 100, Along = NULL, maxNumber = NULL, Breaks = NULL)

Arguments

Model

A mixed model build via lme4 package

FixEffect

The fixed effect of which the power is to calculate

Methods

The methods to examine the power, such as 't', 'f','z','chisq'

Nsim

Number of simulation

Along

The name of the group variable which you want extent the data along. A character name

maxNumber

The max number to extend the data along the group variable

Breaks

You can define the levels to calculate the power

Examples

## Example :
Model = lmer(data = DemoData, DV~CondA+(1|subj)+(1|item))
MixedModelPower(Model = Model, FixEffect = "CondAA2", Methods = "t", Nsim = 10, Along = 'subj',maxNumber = 50, Breaks = seq(5,50,5))

usplos/YawMMF documentation built on July 12, 2024, 1:35 a.m.