Medical statistics and Data Science: Statistics

Basic analystic analysis in Stata

We are still working on this page

Preface

under development

Student's t-test

One-way anova

Linear regression

Wilcoxon rank-sum test (Mann–Whitney U test)

Kruskal-Wallis Test

Chi-squared test

Fisher's exact test

Test one/two-sample proportion(s)

  • Stata command: prtest

Estimate risk difference and risk ratio

  • Stata command: cs

Tabulate odds

  • Stata command: tabodds

Estimate odds ratio

  • Stata command: mhodds

Logistic regression

McNemar's test

Conditional logistic regression

Ordered logistic regression

Multinomial logistic regression

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