Contents
- Preface
- For continous outcomes
- Parametric statistic tests
- Comare the continous outcome between two groups: Student's t-test
- Comare the continous outcome among three or more groups: one-way anova
- Linear regression
- Nonparametric statistics test
- For categorical outcomes
- Unpaired binary outcome
- Chi-squared test
- Fisher's exact test
- Test one/two-sample proportion(s)
- Estimates risk difference and risk ratio
- Tabulate the odds
- Estimate the odds ratio
- Logistic regression
- Paired binary outcome
- Ordinal outcome
- Multiple categories without antural ordering
Preface
under development
One-way anova
- One-way anova in Wikepedia
- Stata command: oneway
Linear regression
- Linear regression in Wikepedia
- Stata command: regress
Wilcoxon rank-sum test (Mann–Whitney U test)
- Wilcoxon rank-sum test (Mann–Whitney U test) in Wikipedia
- Stata command: ranksum
Kruskal-Wallis Test
- Kruskal-Wallis Test in Wikipedia
- Stata command: kwallis
Chi-squared test
- Chi-squared test in Wikipedia
- Stata command: tab2
A list of Stata command
| The description of the command | Name of command | Example |
|---|---|---|
| ttest | ||
| browse | ||
| tab1 | ||
| tab2 | ||
| summarize | ||
| summarize, if | ||
| rename | ||
| generate | ||
| replace, if | ||
| label variable | ||
| lab define, lab value | ||
| drop | ||
| drop, if | ||