Medical statistics and Data Science: Statistics

Advanced graphics in Stata

     

News:

A new book “An introduction to Directed Acyclic Graph (DAG) for health researchers” is scheduled to be published at 12:00 AM GMT in Amazon in the 21st December 2024 (Visible date can be delayed for 72 hours)

The book description:

"Directed acyclic graph (DAG) is increasingly used in modern epidemiology, especially guide researchers to implementing causal inference in observational studies. Casual DAG visually presents causal knowledge and assumptions between variables. Once one can manage the rules, it can facilitate many tasks, such as using DAG makes it easier to understand many concepts for example direct and indirect causal effects, mediation analysis, collider stratification bias, selection bias, and information bias, etc. It also makes easier to recognize and avoid mistakes in analytic decisions such as using the backdoor criterion to select variables to be adjusted."

"More advanced texts on DAGs are readily available in textbooks and in scientific papers, but a simple and comprehensive introduction to DAG is lacking."

"The book thoroughly introduces DAG in a plain language from the scratch, step by step with more simple and accessible language explaining the concepts, terminologies, rules, and potential applications. The book will pave the way for researchers using DAG."

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