gof.Pearson.twoway {TrialSize}R Documentation

Test Goodness of Fit by Pearson's Test for two-way table

Description

H0: pk=pk,0 for all k

Ha: not equal

Usage

gof.Pearson.twoway(alpha, beta, trt, ctl, r, c)

Arguments

alpha

significance level

beta

power = 1-beta

trt

proportion of each subject in treatment group

ctl

proportion of each subject in control group

r

number of rows in the two-way table

c

number of column in the two-way table

Details

(*) is χ^{2}_{r-1}(χ^{2}_{α, r-1}|noncen)=β

References

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


[Package TrialSize version 1.3 Index]