setNoncentrality: Function that sets the noncentrality parameter

Description Usage Arguments Details Value Examples

Description

Sets the noncentrality parameter.

Usage

1
setNoncentrality(theObject, noncent)

Arguments

theObject

The sequential design object

noncent

The noncentrality parameter

Details

The noncentrality paraeter is the expected drift at the end of the study. For example, if the study has a power of 80% using a one sided Z-test with 2.5% type 1 error, the noncentrality parameter is q(0.975)+q(0.8), where q() is the percentile function of the standard normal distribution.

Value

an object of class "sequential.design"

Examples

1
2
3
design1<-sequential.design()
noncent<-qnorm(0.975,0,1)+qnorm(0.8,0,1)
design1<-setNoncentrality(design1,noncent)

seqmon documentation built on Sept. 5, 2020, 1:06 a.m.