Learn R Programming

validateRS (version 1.0.0)

region.power: Compute the power for a region and a given simple alternative hypothesis.

Description

The power of a region is computed for a simple alternative hypothesis. The region should be created by a call to region.acceptance.

Usage

region.power(region, p.1)

Arguments

region
The region for which the power should be computed. Should be the return value of a call to region.acceptance.
p.1
A vector with the values for the simple alternative hypothesis.

Value

The power of the region for the given simple alternative hypothesis.

Details

The power of a region is computed for a simple alternative hypothesis. The region should be created by a call to region.acceptance.

See Also

region.acceptance

Examples

Run this code
mp<-region.acceptance(hypo.test="minP", p.0=c(0.001, 0.004), size=c(1000, 1000), alpha=0.5)
region.power(mp, p.1=c(0.001, 0.01))

Run the code above in your browser using DataLab