Articles and Tutorials

I write here about statistics and machine learning, mainly causal inference, survey methodology and sample representativeness. Posts include the code for anyone who wants to reproduce the analyses.

Complex samples in R and Python: survey and svy side by side

The same complex sample analysis run with the `survey` package (R) and the `svy` library (Python), to check whether estimates and standard errors match and, when they don't, why.