setNoncentrality | R Documentation |
Sets the noncentrality parameter.
setNoncentrality(theObject, noncent)
theObject |
The sequential design object |
noncent |
The noncentrality parameter |
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.
an object of class "sequential.design"
design1<-sequential.design()
noncent<-qnorm(0.975,0,1)+qnorm(0.8,0,1)
design1<-setNoncentrality(design1,noncent)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.