Medical statistics and Data Science: Statistics

Advanced graphics in Stata

Content

  1. Odds ratios with 95% confidence interval
  2. Crude and adjusted odds ratios with 95%CI
  3. Standard normal distribution
  4. Type I, II error and power (version 1)
  5. Type I, II error and power (version 2)
  6. Bar plot with frequencies
  7. Bar plot with percentages
  8. Bar plot with 95%CI
  9. Bar plot with error bars (Version 1)
  10. Bar plot with error bars (Version 2)
  11. Questions with Likert scale from survey data
  12. Odd ratio over-estimates risk ratio (version 1-1)
  13. Odd ratio over-estimates risk ratio (version 1-2)
  14. Odd ratio over-estimates risk ratio (version 2-1)
  15. Odd ratio over-estimates risk ratio (version 2-2)
  16. Odd ratio over-estimates risk ratio (version 3-1)
  17. Odd ratio over-estimates risk ratio (version 3-2)
  18. Odd ratio over-estimates risk ratio (version 4-1)
  19. Odd ratio over-estimates risk ratio (version 4-2)
  20. Cox regression with the restricted cubic spline: version 1
  21. Cox regression with the restricted cubic spline: version 2
  22. Cox regression with the restricted cubic spline: version 3
  23. Area for stacked percent/proportions

Odds ratios with 95% confidence interval

Be aware of that the graph neither reflect any scientific researches nor convey any scientific knowledge. We are focusing on how teachnically make the graph. All the titles and numerical values are purely hypothetical.

The technics can be applied to any regression coefficient such as risk ratio, prevalence ratio, hazard ratio etc.

You can view and download the Stata do.file to reproduce the exactly same graph.

Both crude and adjusted odds ratios with 95%CI

Be aware of that the graph neither reflect any scientific researches nor convey any scientific knowledge. We are focusing on how teachnically make the graph. All the titles and numerical values are purely hypothetical.

Standard normal distribution

Type I, II error and power (Version 1)

Type I, II error and power (Version 2)

Bar plot with frequencies

Bar plot with percentages

Bar plot with 95%CI

Odd ratio over-estimates risk ratio (version 1-1)

Odd ratio over-estimates risk ratio (version 1-2)

Odd ratio over-estimates risk ratio (version 2-1)

Odd ratio over-estimates risk ratio (version 2-2)

Odd ratio over-estimates risk ratio (version 3-1)

Odd ratio over-estimates risk ratio (version 3-2)

Odd ratio over-estimates risk ratio (version 4-1)

Odd ratio over-estimates risk ratio (version 4-2)

Cox regression with the restricted cubic spline: version 1

Cox regression with the restricted cubic spline: version 2

Cox regression with the restricted cubic spline: version 3

Area for stacked percent/proportions