Learn R Programming

TrialSize (version 1.4)

OneWayANOVA.PairwiseComparison: One-way ANOVA pairwise comparison

Description

Ho: \(p_i=p_j\) Ha: not all equal

Usage

OneWayANOVA.PairwiseComparison(alpha, beta, tau, p1, p2, delta)

Arguments

alpha

significance level

beta

power = 1-beta

tau

there are tau comparisons here

p1

the mean response rate for test drug

p2

the rate for reference drug

delta

delta=\(p_i - p_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.4.4.2<-OneWayANOVA.PairwiseComparison(0.05,0.2,2,0.2,0.4,-0.2)
Example.4.4.2

Example.4.4.2<-OneWayANOVA.PairwiseComparison(0.05,0.2,2,0.2,0.5,-0.3)
Example.4.4.2

# }

Run the code above in your browser using DataLab