TwoSampleMean.NIS: Two Sample Mean Test for Non-Inferiority/Superiority

Description Usage Arguments References Examples

View source: R/TwoSampleMean.NIS.R

Description

Ho: margin ≤ delta Ha: margin > delta

if delta >0, the rejection of Null Hypothesis indicates the superiority of the test over the control;

if delta <0, the rejection of the null hypothesis implies the non-inferiority of the test against the control.

Usage

1
TwoSampleMean.NIS(alpha, beta, sigma, k, delta, 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.

delta

the superiority or non-inferiority margin

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

1
2
3
4
Example.3.2.4<-TwoSampleMean.NIS(0.05,0.2,0.1,1,-0.05,0)
Example.3.2.4 # 50

  

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