Learn R Programming

TrialSize (version 1.4)

MeanWilliamsDesign.Equality: Test for Equality in Multiple-Sample William Design

Description

Compare more than two treatment under a crossover design.

H0: margin is equal to 0 Ha: margin is not equal to 0

The test is finding whether there is a difference between treatment i and treatment j

Usage

MeanWilliamsDesign.Equality(alpha, beta, sigma, k, margin)

Arguments

alpha

significance level

beta

power = 1-beta

sigma

standard deviation

k

Total k treatments in the design

margin

\(margin=\mu_i-\mu_j\) the difference between the true mean response of group i \(\mu_i\) and group j \(\mu_j\)

References

Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003

Examples

Run this code
# NOT RUN {
Example.3.5.4<-MeanWilliamsDesign.Equality(0.025,0.2,0.1,6,0.05)
Example.3.5.4 # 6
Example.3.5.4<-MeanWilliamsDesign.Equality(0.025,0.2,0.1,6,-0.05)
Example.3.5.4 # 6
Example.3.5.4<-MeanWilliamsDesign.Equality(0.025,0.2,0.1,6,-0.1)
Example.3.5.4 # 2

# }

Run the code above in your browser using DataLab