| Package | Purpose | Method | Function |
|---|---|---|---|
| pwr | Effect size calculation | Calculate the conventional effect size for the tests | cohen.ES |
| Chi-squared test of goodness of test for two sets of k probabilities | ES.w1 | ||
| Chi-squared test of association for two-way contingency | ES.w2 | ||
| Two proportions test | ES.h | ||
| Sample Size or Power Calculation | One proportion test | pwr.p.test | |
| Two proportions test with same sample size | pwr.2p.test | ||
| Two proportions test with different sample size | pwr.2p2n.test | ||
| T-test 1. one sample 2. two independent samples with same sample size 3. aired sample |
pwr.t.test | ||
| pwr.t.test | |||
| pwr.t.test | |||
| pwr.t.test | |||
| T-test: two independent samples with different sample size | pwr.t2n.test | ||
| Balanced ANOVA | pwr.anova.test | ||
| Correlation test | pwr.r.test | ||
| Chi-squared test | pwr.chisq.test | ||
| General Linear Model | pwr.f2.test |
* table made: 2020/06/08
| Package | Method | R document |
|---|---|---|
| TrialSize | functions and examples in Sample Size Calculation in Clinical Research. | Here |
| CRTSize | Cluster Randomized Trials | Here |
| longpower | Two-level Generalized Mixed Linear Model (GLMM) | Here |
| samplesizeCMH | Cochran-Mantel-Haenszel test (CMH) | Here |
| NPHMCe | Proportional Hazards Mixture Cure Model (PHMC) | Here |
| samplesize | 1.T-test 2.Wilcoxon test |
Here |
| WMWssp | Wilcoxon test | Here |