Medical statistics and Data Science: Statistics

     

News:

This webpage has been upgraded as a book “How to get started with Stata”, which has been published in Amazon

As the saying goes, everything is difficult at the beginning. An entry-level textbook is far more important than we might think. The best entry-level textbook guides you start a topic smoothly and gives you confidence to go further. On the contrary, you might get confused at the beginning if an entry-level textbook is unsatisfied.

Link to the book description

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