gof.Pearson {TrialSize} | R Documentation |
Test Goodness of Fit by Pearson's Test
Description
Test the goodness of fit and the primary study endpoint is non-binary categorical response. pk=nk/n, nk is the frequency count of the subjects with response value k. pk,0 is a reference value.
H0: pk=pk,0 for all k
Ha: not equal
Usage
gof.Pearson(alpha, beta, pk, pk0, r)
Arguments
alpha |
significance level |
beta |
power = 1-beta |
pk |
pk is the proportion of each subject in treatment group. |
pk0 |
pk0 is a reference value. |
r |
degree of freedom=r-1 |
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]