The full book online. Nine chapters, 71 references. From potential outcomes and DAGs through to TMLE, with R and Stata code throughout.
Featured
Conformal Statistical Inference
Marginal coverage guarantees, split conformal prediction (SCP), conformal quantile regression (CQR), full conformal, and Jackknife+. Available as a comprehensive interactive notebook and a slide tutorial in Spanish.
New Book
Computational Causal Inference for Applied Researchers
An introduction to causal inference that starts from potential outcomes and DAGs and builds up to TMLE, longitudinal data, mediation, and sensitivity analysis. Nine chapters with reproducible R and Stata examples (~65 in total).
Causal Inference & TMLE
Comparing S-, T-, and X-learners (h2o with GBM) against ELTMLE in Stata. CATE estimation with theoretical background and reproducible Quarto analysis.
A practical walk-through of TMLE: influence functions, the fluctuation step, and variance estimation, all with worked examples in R.
Doubly robust methods, AIPW, and TMLE in Stata using the
eltmle command. Real-data examples and hands-on workflow.Derivación matemática completa: funciones de influencia, teoría semiparamétrica, y estimadores doblemente robustos.
Variance estimation via the delta method for common epidemiological estimands. Derivations and examples in an R notebook.
Simulation study presented at the 2017 Stata User Group Meeting, comparing
eltmle to competitors under dual misspecification.Open-source Stata module for TMLE estimation of the average treatment effect, with SuperLearner integration.
Survival Analysis
Kaplan-Meier curves, log-rank tests, and Cox proportional hazards models. Workshop tutorial from ULB.
Standardizing net survival estimates in a cohort design. For Stata users working with population-based cancer registry data.
Fitting STRS models and Poisson regression for net survival estimation under the relative survival framework.
Royston-Parmar flexible parametric survival models applied to net survival. Extended tutorial with full Stata code.
Machine Learning
K-fold CV, leave-one-out, and bootstrap resampling for model selection and evaluation. Interactive R notebook.
Stata module that computes cross-validated area under the ROC curve with bootstrap confidence intervals.
A practical guide to installing and using Claude Code for statistics work on Windows. Covers R, Stata, Python, and Quarto integration.
Interactive Shiny Apps
Mapa interactivo de renta mediana y variables sociodemográficas por sección censal en Andalucía (2015–2022). Incluye asistente inteligente con IA local (Ollama) para consultas en lenguaje natural, garantizando la privacidad de los datos.
Calculate an expected delivery date from gestational age, with uncertainty intervals.
Interactive network visualisation of comorbidity patterns among cancer patients.
Explore Weibull, log-normal, and Gompertz survival distributions and their hazard functions interactively.
A visual demonstration of collider bias and selection bias in causal inference.
Draw samples from normal, uniform, exponential, and bimodal distributions to see the CLT emerge step by step.
How do sample size, variability, and confidence level affect interval width? Uses simulated repeated sampling to show what coverage probability actually means.
Stata Packages
Targeted Maximum Likelihood Estimation for the average treatment effect in Stata, using SuperLearner ensemble learning.
Cross-validated area under the ROC curve for binary classifiers, with bootstrap CIs and k-fold CV.
Quick tabulation of matched pairs in 1:1 case-control studies by exposure status. Simple, small, well tested.
R Packages
Classical biostatistics routines for the health sciences — companion package to Matemática Estadística Médica con R. Probability, inference, regression, epidemiology.
Books
Nine chapters covering potential outcomes, DAGs, G-formula, propensity scores, AIPW, TMLE, longitudinal data, mediation, and sensitivity analysis. About 65 examples in R and Stata.
Open-access textbook on mathematical statistics for medicine and the health sciences. R and Quarto throughout. In Spanish.
Applied biostatistics: survival analysis, longitudinal models, causal inference, and diagnostic test evaluation. R implementations throughout.
Tools & Guides
Guía paso a paso para instalar y usar Claude Code en Windows, orientada a estadísticos y científicos de datos.