powered by
Ho: \(\mu_1 -\mu_2 = 0 \)
Ha: \(\mu_1 -\mu_2 = d \)
The test is finding the treatment difference in QT interval. d is not equal to 0, which is the difference of clinically importance.
QT.PK.parallel(alpha, beta, pho, K, delta, v1, v2, tau1, tau2)
significance level
power = 1-beta
pho=between subject variance \(\sigma^{2}_{s}\)/(between subject variance \(\sigma^2_s\)+within subject variance \(\sigma^2_e\))
There are K recording replicates for each subject.
\(\sigma^2=\sigma^2_s+\sigma^2_e\). d is the difference of clinically importance. \(\delta = d/\sigma \)
sample mean for group 1
sample mean for group 2
sample variance for group 1
sample variance for group 2
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { Example.15.1.4.1<-QT.PK.parallel(0.05,0.2,0.8,3,0.5,1,1,4,5) Example.15.1.4.1 # 54 # }
Run the code above in your browser using DataLab