Learn R Programming

gMCP (version 0.8-5)

extractPower: 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]}

Value

  • A list containg at least the following three elements
  • LocPowerA numeric giving the local powers for the hypotheses
  • ExpNrRejThe expected number of rejections
  • PowAtlst1The power to reject at least one hypothesis
  • RejectAllThe power to reject all hypotheses
  • Further it contains an element for each element in the parameter f.