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 \chi^{2}_{r-1}(\chi^{2}_{\alpha, r-1}|noncen)=\beta

References

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


[Package TrialSize version 1.4 Index]