GitHub Hot Board

GitHub Hot Board · 저장소 아카이브

mikenguyen13/data_analysis

Streamline a data analysis process. A book on data analysis, causal inference, and econometrics, written for readers with little to no prior background who want to develop both statistical intuition and practical R skills. (소개는 저장소 자체 문서에서 왔습니다.)

Stata#causal-analysis#causal-inference#causal-models

데이터 기준 October 27mikenguyen13

최고 순위

#8

과소평가 · 활발한데 무명

100

누적 스타

49

포크 수

2

최근 30일 기록 일수

라이선스: NOASSERTION최근 push: October 17열린 이슈(PR 포함): 02026-10-25부터 수집. 미확인 = 아직 미수집

프로젝트 문서

A Guide on Data Analysis

Read online Springer DOI License: CC BY-NC-SA 4.0 Made with bookdown R

GitHub stars Last commit Issues Contributions welcome

A Guide on Data Analysis logo

A book on data analysis, causal inference, and econometrics, written for readers with little to no prior background who want to develop both statistical intuition and practical R skills. The print edition is published by Springer Cham as a four-volume series, and this repository hosts the open online edition that the print volumes are drawn from.

Read it online: https://mike-data-analysis.share.connect.posit.cloud/

What the book covers

The online edition runs from descriptive statistics through inference, regression, and causal inference, with a strong emphasis on the methods that have come to define modern empirical practice.

  • Foundations: descriptive statistics, basic inference, hypothesis testing, sampling, ANOVA.
  • Regression: OLS, GLS, MLE, penalized, robust, partial least squares.
  • Generalized linear and mixed models: logistic, count, hierarchical.
  • Modeling workflow: variable transformation, imputation, model specification, variable selection.
  • Effects and decomposition: marginal effects, moderation, mediation, prediction vs. estimation.
  • Causal inference: difference-in-differences with the modern staggered estimators (Goodman-Bacon, Callaway-Sant'Anna, Sun-Abraham, de Chaisemartin-D'Haultfoeuille, Borusyak-Jaravel-Spiess), regression discontinuity (incl. rdrobust), interrupted time series, synthetic control, synthetic DiD, changes-in-changes, event studies, instrumental variables (incl. examiner designs and proxies), matching, and DAGs.
  • Sensitivity and robustness: specification curves, Oster coefficient stability, Cinelli-Hazlett robustness value (sensemakr), Rosenbaum bounds.
  • Workflow and reporting: experimental design, EDA, reproducibility, synthetic data, HPC.

Table of contents

The book is organized into five parts plus an appendix. This section is auto-generated by tools/build-toc.R on every push — do not edit by hand.

Part I. Foundations

  1. Prerequisites
  2. Descriptive Statistics
  3. Basic Statistical Inference

Part II. Regression

  1. Linear Regression
  2. Non-Linear Regression
  3. Generalized Linear Models
  4. Discrete Choice and Limited Dependent Variables
  5. Tweedie Regression
  6. Linear Mixed Models
  7. Nonlinear and Generalized Linear Mixed Models
  8. Nonparametric Regression
  9. Quantile Regression and Distributional Methods

Part III. Ramifications

  1. Data
  2. Time Series Analysis
  3. Variable Transformation
  4. Imputation (Missing Data)
  5. Model Specification Tests
  6. Variable Selection
  7. Hypothesis Testing
  8. Marginal Effects
  9. Moderation
  10. Mediation
  11. Prediction and Estimation

Part IV. Causal Inference

  1. Causal Inference
  • A. Experimental Design
  1. Experimental Design
  2. Interference and Spillover Effects
  3. Sampling
  4. Survey and Response Quality
  5. Analysis of Variance
  6. Multivariate Methods
  • B. Quasi-Experimental Design
  1. Quasi-Experimental Methods
  2. Regression Discontinuity
  3. Temporal Discontinuity Designs
  4. Synthetic Difference-in-Differences
  5. Difference-in-Differences
  6. Changes-in-Changes
  7. Synthetic Control
  8. Event Studies
  9. Instrumental Variables
  10. Matching Methods
  11. Machine Learning for Causal Inference
  12. Uplift Modeling and Heterogeneous Treatment Effects
  13. Text as Data and NLP for Causal Inference
  • C. Other Concerns
  1. Endogeneity
  2. Biases
  3. Directed Acyclic Graphs
  4. Controls

Part V. Miscellaneous

  1. Reporting Your Analysis
  2. Exploratory Data Analysis
  3. Sensitivity Analysis and Robustness Checks
  4. Replication and Synthetic Data
  5. Differential Privacy
  6. High-Performance Computing
  7. Clustered and Robust Inference

Part VI. Structural Econometrics

  1. Estimation Methods for Structural Models
  2. Structural Econometrics and Demand Estimation
  3. Dynamic Discrete Choice
  4. Dynamic Games
  5. Structural Models of Selection and Unobserved Heterogeneity
  6. Production Functions and Productivity
  7. Frontier and Efficiency Analysis
  8. Markups, Market Power, and Mergers
  9. Demand Systems
  10. Structural Models of Auctions
  11. Machine Learning and AI for Structural Estimation
  12. Structural Models in Marketing
  13. Branding and Brand Equity
  14. Structural Models in Finance

Appendix

A. Appendix B. Bookdown cheat sheet

Print edition (Springer Cham, 2025)

The book is published in four volumes by Springer Cham:

Volume Title Identifier
1 Foundations of Data Analysis DOI 10.1007/978-3-032-01858-8
2 Regression Techniques for Data Analysis ISBN 978-3-032-01834-2
3 Advanced Modeling and Data Challenges ISBN 978-3-032-01718-5
4 Experimental Design ISBN 978-3-032-01838-0

How to cite

Nguyen, M. (2025). Foundations of Data Analysis (Vol. 1). Springer Cham. https://doi.org/10.1007/978-3-032-01858-8

@book{Nguyen2025Vol1,
  author    = {Nguyen, Mike},
  title     = {Foundations of Data Analysis},
  volume    = {1},
  year      = {2025},
  publisher = {Springer Cham},
  doi       = {10.1007/978-3-032-01858-8}
}

Citation entries for Volumes 2 to 4 are listed in the preface of the online edition.

Building locally

The book is built with bookdown and renders to HTML (gitbook), PDF (LuaLaTeX), and EPUB.

install.packages(c("bookdown", "rmarkdown"))
bookdown::render_book(input = "index.Rmd")

The PDF route requires a working LaTeX installation with LuaLaTeX. On Windows, TinyTeX or MiKTeX both work; on macOS, MacTeX; on Linux, TeX Live.

The repo uses renv for package version pinning. After cloning, run renv::restore() to recreate the package environment used by the book.

Repository layout

.
├── index.Rmd               # title page and preface
├── 02-50*.Rmd              # numbered chapters
├── _bookdown.yml           # book configuration
├── _output.yml             # output formats (gitbook, PDF, EPUB, bs4_book)
├── preamble.tex            # LaTeX preamble for the PDF build
├── *.bib                   # bibliographies (book.bib, references.bib, packages.bib, references1.bib)
├── images/                 # figures and cover art
├── data/                   # datasets used in examples
├── renv/, renv.lock        # pinned package environment
└── _book/                  # rendered output (git-ignored)

Files prefixed with _ (e.g., _06.01-...) are draft fragments not included in the live book.

Errata

Spotted an error or have a suggestion? Please open an issue on this repository.

Author

Mike Nguyen, mikenguyen.netlify.app, GitHub @mikenguyen13.

License

The online edition is released under CC BY-NC-SA 4.0. The print editions of Volumes 1 to 4 published by Springer Cham (2025) are not covered by this license; all rights to the print editions are reserved by the publisher. See LICENSE for the full notice.

현재 순위

  • 8

    과소평가 · 활발한데 무명

    100 스타 · 49 fork · 총 스타 수(오름차순)

    과소평가 →

최근 30일 추이

누적 스타 추이

순위 추이

README에 뱃지를 붙여보세요 · mikenguyen13/data_analysis[![README에 뱃지를 붙여보세요](https://git.vaiox.xyz/api/badge/mikenguyen13/data_analysis.svg)](https://git.vaiox.xyz/ko/repo/mikenguyen13/data_analysis)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/ko/repo/mikenguyen13/data_analysis"><img src="https://git.vaiox.xyz/api/badge/mikenguyen13/data_analysis.svg" alt="README에 뱃지를 붙여보세요" height="20"></a>

← 랭킹으로

GitHub Hot Board타임머신발견联系我们 · Contact