Description Usage Arguments Details References

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

1 | ```
gof.Pearson(alpha, beta, pk, pk0, r)
``` |

`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 |

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

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

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.