Learn R Programming

seqmon (version 2.5)

setNoncentrality: Function that sets the noncentrality parameter

Description

Sets the noncentrality parameter.

Usage

setNoncentrality(theObject, noncent)

Value

an object of class "sequential.design"

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.

Examples

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

Run the code above in your browser using DataLab