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.parallel(alpha, beta, pho, K, delta)
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 \)
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { Example.15.1.2<-QT.parallel(0.05,0.2,0.8,3,0.5) Example.15.1.2 # 54 # }
Run the code above in your browser using DataLab