Cochran.Armitage.Trend: Cochran-Armitage's Test for Trend

Description Usage Arguments References Examples

View source: R/Cochran.Armitage.Trend.R

Description

H0: p0=p1=p2=...=pK

Ha: p0 <= p1 <= p2 <=...<= pK with p0 < pK

Usage

1
Cochran.Armitage.Trend(alpha, beta, pi, di, ni, delta)

Arguments

alpha

significance level

beta

power = 1-beta

pi

pi is the response rate in ith group.

di

di is the dose level

ni

ni is the sample size for group i

delta

delta is the clinically meaningful minimal difference

References

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

Examples

1
2
3
4
5
6
7
pi=c(0.1,0.3,0.5,0.7);
di=c(1,2,3,4);
ni=c(10,10,10,10);

Example.11.5<-Cochran.Armitage.Trend(alpha=0.05,beta=0.2,pi=pi,di=di,ni=ni,delta=1)
Example.11.5
# 7.5 for one group. Total 28-32. 

TrialSize documentation built on May 30, 2017, 7:18 a.m.