HealthyR advent calendar
The HealthyR Advent Calendar 2022 was a series of 24 R tips I shared on Twitter last December
It is based on “R for Health Data Science” by Harrison and Pius. Use JKL20 for 20% off, including free worldwide shipping.
Here’s a selection of the most popular ones, all 24 can be fount at this website: https://healthyradvent.netlify.app/
More information about HealthyR, including the book and freely available resources can be found at: https://healthyr.surgicalinformatics.org/
🌟Day 15 – Understanding linear regression🌟
— Riinu Pius (@_Riinu_) December 15, 2022
Real talk - first step to understanding logistic regression is understanding linear regression. So please have a 👀 and 🧠 even if your data needs log./Cox.#HealthyR #rstats "R for Health Data Science" 📖:https://t.co/bTtHk2WUVZ pic.twitter.com/qWj5upbEG6
🌟Day 16 – Understanding logistic regression🌟
— Riinu Pius (@_Riinu_) December 16, 2022
Dependent (=outcome): adverse event (Yes/No)
Explanatory variables:
cups of ☕ (n); 🚬 (Yes/No)
(made-up data)
Weekend posts will be lighter, promise 🧠#HealthyR #rstats "R for Health Data Science" 📖:https://t.co/yNPlXNAdZ7 pic.twitter.com/Y6gOoz6cuv
🌟Day 20 - We're just trying to find a model that best describes the data🌟
— Riinu Pius (@_Riinu_) December 20, 2022
Same made-up data on each plot:
A univariable
B, C multivariable
Note the R-squared 😉#HealthyR #rstats "R for Health Data Science"📖 chapter:https://t.co/bTtHk2WUVZ pic.twitter.com/jb1RynvE39
🌟Day 21 - confounding🌟
— Riinu Pius (@_Riinu_) December 21, 2022
Same made-up data on both plots.
A - coffee seems to have an effect on blood pressure
B - except that it was completely confounded in heavy coffee drinkers also smoking #HealthyR #rstats "R for Health Data Science"📖 :https://t.co/bTtHk2Fjxp pic.twitter.com/Fg7sMZGGZd