setNoncentrality: Function that sets the noncentrality parameter

setNoncentralityR Documentation

Function that sets the noncentrality parameter

Description

Sets the noncentrality parameter.

Usage

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

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

seqmon documentation built on May 29, 2024, 9:14 a.m.