TwoSampleProportion.Equivalence: Two sample proportion test for equivalence

Description Usage Arguments References Examples

View source: R/TwoSampleProportion.Equivalence.R

Description

Ho: |p1-p2| ≥ margin

Ha: |p1-p2| < margin

The proportion of response p1 is equivalent to the reference drug p2 is the null hypothesis is rejected

Usage

1
TwoSampleProportion.Equivalence(alpha, beta, p1, p2, k, delta, margin)

Arguments

alpha

significance level

beta

power = 1-beta

p1

the mean response rate for test drug

p2

the rate for reference drug

k

k=n1/n2

delta

delta=p1-p2

margin

the superiority or non-inferiority margin

References

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

Examples

1
2
Example.4.2.4<-TwoSampleProportion.Equivalence(0.05,0.2,0.75,0.8,1,0.2,0.05)
Example.4.2.4

TrialSize documentation built on July 8, 2020, 7:19 p.m.