Test Goodness of Fit by Pearson's Test

Share:

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

1
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 χ^{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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.