This page provides R code for downloading data from two national health surveys and for carrying out the example analyses in the book. Two datasets analyzed in the book are also provided.
- Chapter 1: Statistics and health data
- Chapter 2: Key statistical concepts
- Chapter 3: Regression analysis
- Chapter 4: Binary and categorical outcomes
- Chapter 5: Count outcomes
- Chapter 6: Health care costs
- Chapter 7: Bootstrap methods
- Chapter 8: Causal inference
- Chapter 9: Survey data analysis
- Chapter 10: Prediction