Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


TrialSize (version 1.4)

TwoSampleMean.Equality: Two Sample Mean Test for Equality

Description

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

The test is finding whether there is a difference between the mean responses of the test group and control group.

Usage

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

Arguments

alpha

significance level

beta

power = 1-beta

sigma

pooled standard deviation of two groups

k

k=n1/n2

Example: k=2 indicates a 1 to 2 test-control allocation.

margin

margin=μ2μ1

the true mean difference between a test mu2 and a control mu1

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.2.4<-TwoSampleMean.Equality(0.05,0.2,0.1,1,0.05)
Example.3.2.4 # 63

# }

Run the code above in your browser using DataLab