powerBsb {binseqtest}R Documentation

Power for binary sequential boundary

Description

Calculate power from boundEst object for vector of alternatives

Usage

powerBsb(object, theta = 0.6, alternative = NULL)

Arguments

object

a 'boundEst' object

theta

vector of theta values, probability of success

alternative

character, either 'two.sided', 'less', or 'greater'

Details

Power to reject. For alternative='greater' reject when pU<tsalpha['alphaUpper'], and for alternative='less' reject when pL<tsalpha['alphaLower']. For alternative='two.sided' if theta[i]>theta0 reject when pU<tsalpha['alphaUpper'], if theta[i]<theta0 reject when pL<tsalpha['alphaLower'], if theta[i]==theta0 and tsalpha['alphaUpper']<=tsalpha['alphaLower'] reject when pU<tsalpha['alphaUpper'], and if theta[i]==theta0 and tsalpha['alphaUpper']>tsalpha['alphaLower'] reject when pL<tsalpha['alphaLower'].

Value

a vector with power associated with the parameter vector theta

Examples

B<-designAb(Nk=c(20,40),a=10,theta0=.4)
powerBsb(B,theta=c(.1,.4,.8),alternative="less")

[Package binseqtest version 1.0.4 Index]