extractPower: Calculate power values

View source: R/calcPower.R

extractPowerR Documentation

Calculate power values

Description

Calculates local power values, expected number of rejections, the power to reject at least one hypothesis and the power to reject all hypotheses.

Usage

extractPower(x, f = list())

Arguments

x

A matrix containing the rejected hypothesis, as produces by the graphTest function.

f

List of user defined power functions. If one is interested in the power to reject hypotheses 1 and 3 one could specify function(x) {x[1] && x[3]}. If f is a named list, the result will contain corresponding items with the same names (among the default elements described in the following).

Value

A list containg at least the following four elements and an element for each element in the parameter f.

LocPower

A numeric giving the local powers for the hypotheses

ExpNrRej

The expected number of rejections

PowAtlst1

The power to reject at least one hypothesis

RejectAll

The power to reject all hypotheses


gMCP documentation built on May 29, 2024, 9:37 a.m.