simPowerZeroRestriction: Simulate Power for a null hypothesis involving one or more...

View source: R/simPowerZeroRestriction.R

simPowerZeroRestrictionR Documentation

Simulate Power for a null hypothesis involving one or more zero-constraints.

Description

Monte-Carlo-simulate power for a given model to reject a null hypothesis involving one or more zero-constraints.

Usage

simPowerZeroRestriction(trueModel, restrictions, N, repetitions,
  keepModels = F, steps = NULL, cluster = NULL)

Arguments

trueModel

An OpenMx model representing the population model.

restrictions

A list of parameters to be restricted to zero under H0.

N

Sample size

repetitions

The number of Monte-Carlo-trials.

keepModels

Store the complete intermediate results in form of the fitted models. Only recommended for debugging purposes.

steps

A list of parameter names and values for simulating across multiple conditions

cluster

A cluster object for parallel execution

Details

This is a wrapper function to the generic simpower function to obtain power for a given model to reject a null hypothesis involving one or more zero-constraints by a Monte Carlo simulation.


brandmaier/semper documentation built on Feb. 6, 2024, 5:35 a.m.