Riinu Pius · @riinu
37 followers · 16 posts · Server mastodon.scot

All advent calendar posts of R tips now at healthyradvent.netlify.app/

Most popular:
💡Understanding linear/logistic regression
📈Univariable vs multivariable
⚰️Confounding

JKL20 for 20% off, free worldwide shipping: routledge.com/R-for-Health-Dat

#rstats #healthyr

Last updated 2 years ago

Are you tired of manually copying and pasting data from multiple sheets in an Excel file? Say no more! In this post, we will show you how to use R programming to read in an Excel file with multiple sheets using a simple function.

Post: spsanderson.com/steveondata/po

#dplyr #tibble #softwaredevelopment #OpenSource #RStats #r #healthyr #readxl #Excel #dataanlysis #Data

Last updated 2 years ago

Riinu Pius · @riinu
27 followers · 9 posts · Server mastodon.scot

🌟Day 24 - Season's Greetings, Part 3/3🌟

+ scale_fill_identity()

I use scale_fill_brewer() or scale_fill_manual() more, but this works well here 🎄

That's the Advent Calendar! Thank you for thinking along and happy holidays 🎉

Our courses and free resources: healthyr.surgicalinformatics.o
Image code at: gist.github.com/riinuots/f7911

#rstats #healthyr

Last updated 2 years ago

Riinu Pius · @riinu
21 followers · 8 posts · Server mastodon.scot

🌟Day 23 - Season's Greetings, Part 2/3🌟

Note the two different ways of creating data - tibble and tribble. This is useful if you need to make a reproducible example!

Anyone want to guess what tomorrow's single additional line is?
gist.github.com/riinuots/f3d27

#rstats #healthyr

Last updated 2 years ago

Riinu Pius · @riinu
21 followers · 7 posts · Server mastodon.scot

🌟Day 22 - Season's Greetings, Part 1/3🌟

That's enough regression for this year!

Execute this code in your head or an IDE, further instalments coming on the remaining days of our Advent Calendar 2022 🎄 gist.github.com/riinuots/52c00

#rstats #healthyr

Last updated 2 years ago

Phil Brailey-Jones (he/him) · @Pretzel
115 followers · 424 posts · Server ecoevo.social

RT @_Riinu_@twitter.com

🌟Day 21 - confounding🌟

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

"R for Health Data Science"📖 :
argoshare.is.ed.ac.uk/healthyr

🐦🔗: twitter.com/_Riinu_/status/160

#healthyr #rstats

Last updated 2 years ago

Chenxin Li, PhD · @ChenxinLi2
143 followers · 25 posts · Server genomic.social

RT @_Riinu_@twitter.com

🌟Day 21 - confounding🌟

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

"R for Health Data Science"📖 :
argoshare.is.ed.ac.uk/healthyr

🐦🔗: twitter.com/_Riinu_/status/160

#healthyr #RStats

Last updated 2 years ago

Riinu Pius · @riinu
19 followers · 6 posts · Server mastodon.scot

🌟Day 21 - confounding🌟

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

"R for Health Data Science"📖 argoshare.is.ed.ac.uk/healthyr

#rstats #healthyr

Last updated 2 years ago

Riinu Pius · @riinu
16 followers · 4 posts · Server mastodon.scot

🌟Day 20 - We're just trying to find a model that best describes the data🌟

Same made-up data on each plot:
A univariable
B, C multivariable
Note the R-squared 😉

"R for Health Data Science"📖 chapter: argoshare.is.ed.ac.uk/healthyr

#rstats #healthyr

Last updated 2 years ago

Riinu Pius · @riinu
14 followers · 3 posts · Server mastodon.scot

🌟Day 19 - Restart R regularly🌟

Do this now so that old data won't come back to haunt you:
👻Tools -> Global Options
👻👻Uncheck restore
👻👻👻Never save on exit

Then save and load objects consciously!

"R for Health Data Science"📖:
argoshare.is.ed.ac.uk/healthyr

#rstats #healthyr

Last updated 2 years ago

Riinu Pius · @riinu
10 followers · 2 posts · Server mastodon.scot

🌟Day 18 - RStudio interface for R Markdown🌟

Lots of useful buttons and options 🙈
Here are the most useful ones 💡

"R for Health Data Science" 📖:
argoshare.is.ed.ac.uk/healthyr

#rstats #healthyr

Last updated 2 years ago

Riinu Pius · @riinu
10 followers · 2 posts · Server mastodon.scot

🌟Day 17 – Understanding R Markdown🌟

Header📍
Headings🗂
Text📝
Inline code - code inside text💙
Code chunk💙
Output (in this example it's a plot)📈

"R for Health Data Science" 📖:
argoshare.is.ed.ac.uk/healthyr

#rstats #healthyr

Last updated 2 years ago

Daniel P. Moriarity · @dp_moriarity
319 followers · 362 posts · Server fediscience.org

RT @_Riinu_@twitter.com

🌟Day 16 – Understanding logistic regression🌟

Dependent (=outcome): adverse event (Yes/No)

Explanatory variables:
cups of ☕ (n); 🚬 (Yes/No)

(made-up data)

Weekend posts will be lighter, promise 🧠

"R for Health Data Science" 📖:
argoshare.is.ed.ac.uk/healthyr

🐦🔗: twitter.com/_Riinu_/status/160

#rstats #healthyr

Last updated 2 years ago

Daniel P. Moriarity · @dp_moriarity
319 followers · 362 posts · Server fediscience.org

RT @_Riinu_@twitter.com

🌟Day 15 – Understanding linear regression🌟

Real talk - first step to understanding logistic regression is understanding linear regression. So please have a 👀 and 🧠 even if your data needs log./Cox.

"R for Health Data Science" 📖:
argoshare.is.ed.ac.uk/healthyr

🐦🔗: twitter.com/_Riinu_/status/160

#rstats #healthyr

Last updated 2 years ago