Alboukadel Kassambara (@datanovia) header
Alboukadel Kassambara (@datanovia) profile picture

Genomics, Precision Medicine, Data, Analysis, Visualization, R, Biostatistics

France
Joined December 2014
Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)Photo by Alboukadel Kassambara (@datanovia)
Check the assumptions of a linear regression in R: read the four base-R diagnostic plots, then fix what fails. sales ~ youtube passes linearity and normality, then fails Scale-Location: transform the outcome, lm(log(sales) ~ youtube). datanovia.com/learn/biostati… #rstats
79
A runnable tutorial for the clinical forest plot in R, with survminer's ggforest() and ggplot2. The under-65 row: HR 1.64 (0.74, 3.60), crossing 1 on 28 events. Treat a crossing interval in a small subgroup as no answer, not a negative one. datanovia.com/learn/pharma-c… #rstats
1
71
In ggplot2, ylim() and coord_cartesian() are not two ways to do the same thing. ylim(10, 25) drops 6 of 32 mtcars rows before geom_smooth() fits. coord_cartesian(ylim = c(10, 25)) zooms instead. Same view. Different analysis. datanovia.com/learn/data-vis… #rstats
1
90
A practical forecasting workflow in R: decompose, hold out a test set, fit ETS and auto.arima, compare RMSE and MAE. Runnable base R. Hold out at least as long as the horizon you forecast. datanovia.com/blog/time-seri… #rstats
69
The per-cell Wilcoxon behind FindMarkers() calls 1,422 of 1,710 genes significant. Cells aren't replicates, donors are: on a random donor split it still finds 86, pseudobulk DESeq2 finds 0. pb <- t(rowsum(t(as.matrix(cm)), group = sample_id)) datanovia.com/learn/bioinfor… #rstats
78
How many clusters? Run fviz_nbclust() three ways on scaled USArrests: elbow 4, silhouette 2, gap statistic 3. No two agree. Don't pick a favourite — put it to NbClust(): 26 indices, 11 vote k = 2. Shortlist, then pick the k you can interpret. buff.ly/YGMTRPD #rstats
80
Scaling slow R: vectorize first, Arrow/DuckDB when it won't fit in RAM, furrr last. Most "slow R" is a missing vectorization, not a missing core: u * p beats a for loop growing with c(), 23.5 µs vs 363.6 ms on 20,000 rows. buff.ly/oIgaoTy #rstats
1
96
A heart transplant appears to cut the risk of death by 82%. Then you let transplant status change over time: HR 0.18 → 1.02. Same patients. Same deaths. Same covariates. The catch? You cannot become "transplanted" after you have died. buff.ly/jZvr8Zc #rstats
86
Pass CNSR into Surv() unflipped and nothing errors. That's the danger: the median came out 211 days instead of 33. survfit(Surv(AVAL, 1 - CNSR) ~ TRT01A, data = adtte) Check the events column, not the shape. datanovia.com/learn/pharma-c… #rstats
1
124
Normality test comes back p = 0.03. Abandon the t-test? Not on that alone. ToothGrowth len, n = 60: p = 0.109 The same 60 values repeated 10x: p = 1e-10 Identical shape. Only n changed. Above n = 50, judge on the Q-Q plot. buff.ly/wbJsBai #rstats
2
142
Most ggplot2 tutorials stop at the plot. This one goes further: • Statistical comparisons (Kruskal–Wallis & post-hoc tests) • Group means • Publication-ready annotations • Every example runs live in your browser The ggpubr series — free. #rstats buff.ly/dtcdJuI
1
2
6
427
⚡ SERIES FINALE: Mastering Reactive Programming 🎊 Most advanced tutorial in our Shiny Fundamentals series! 👉 buff.ly/HA1wQre #RStats #Shiny #ReactivePrograms #Achievement 1/5 ⚡
1
1
152
4/5 🚀 From "What is Shiny?" to building production apps with advanced patterns 5-week transformation complete! 🏆 This is where you become a true Shiny developer.
1
91
5/5 🧵 What was your biggest "aha!" moment in this series? Share your breakthrough below! Your insight might help another developer. 👇 Ready for the next level? UI Design series launches next week! 🎨
1
77
🏗️ Week 4: Shiny Application Architecture Mastery New tutorial: Understanding the "why" behind everything that makes Shiny powerful 👉 buff.ly/C4XkVRP #RStats #Shiny #Architecture #SoftwareDesign 1/4 🏗️
1
1
88
3/4 💡 Game changer: Understanding reactive dependency graphs = X-ray vision for your apps Debug faster, optimize better, build smarter.
1
47
4/4 📈 These patterns separate hobby projects from production applications What's the most complex Shiny architecture challenge you've faced? 🧵👇
49