Fitting and visualizing linear regression models with the ggplot2 R package (CC237)

  Рет қаралды 6,680

Riffomonas Project

Riffomonas Project

Күн бұрын

Пікірлер: 23
@lucaschnatz5729
@lucaschnatz5729 2 жыл бұрын
As always, great episode! I really enjoy these more statistical videos in combination with data visualization. It would be nice to see those kinds of videos more often in the future!
@Riffomonas
@Riffomonas 2 жыл бұрын
Thanks! I’ll do my best 🤓
@levonbigelow412
@levonbigelow412 2 жыл бұрын
Hey Pat! I’m wrapping up a master’s degree at UConn and wanted to thank you sincerely for your videos!! They have definitely saved me a lot of time and made me more proficient at data analysis/visualization. I still have a long way to go, but the growth from here will be exponential thanks to you. I hope you are well! I look forward to catching up with as much of your content as I can 🤓 you are awesome!!!
@Riffomonas
@Riffomonas 2 жыл бұрын
You’re too kind Levon - thanks for watching! 🤓
@caseyj9
@caseyj9 2 жыл бұрын
Awesome video. I’m in California where there isn’t snow and the longest range of data has varied very little in the last 100 years. That said I’ve used what I’ve learned through your channel to make some awesome visuals on my survey data (likhert scales)- thank you!
@Riffomonas
@Riffomonas 2 жыл бұрын
Awesome! You just gave me an idea for maybe making a visual to indicate droughtiness
@funwithflags7506
@funwithflags7506 2 жыл бұрын
Great video, thanks for the free resources you provide, having great fun learning this in my first year undergraduate
@Riffomonas
@Riffomonas 2 жыл бұрын
Wonderful! I love it when I see undergrads benefiting from my stuff. 🤓
@haraldurkarlsson1147
@haraldurkarlsson1147 2 жыл бұрын
Pat, Very interesting. I played around with the data some more following your lead. In general I see similar trends and my curves are very thight together. The 10:1 manual curve is in fact the steepest - the low-temperature curve (that is for temps in the range 0 to - 5C) is 8. The simple model is slightly less and the advanced model the lowest. However, they are quite tight. The 12:1 value that I quoted I saw somewhere in the climate literature but there are clearly local variations especially when close to these big lakes. The cursory work I did on this was not sufficient and as not elegant as your approach. I tried to sort my tmax data into bins (0 to -20 was my range) and then detect temperature groupings on the prcp-snow plot. I also tried to see if ggdensity could bring out these groups better than I could do by eye-balling the data. Again little luck. I did notice that the data I studied are dominate by values in the 0 to -5 C range so I decided to pull those out and treat them separately (low-temperature curve) . Perhaps the most revealing graph was the facet_wrap when I divided the temperature data into four groups (ranging from 0 to - 20C). The amount precipiation (as one might expect) decreases in terms of range as one went from 0 to -5 to -15-20C. There was a considerable shortening of the smooth line again showing that the "best" data is the lowest temperature data (where you have naturally more instances of snow and precip) in addition much higher amounts of both in mm. In none of my attempts did I see a significant effect from temperature on the fitted curves. I simply did not see if (even if it does exist). I have not touched on the precision of these measurements or tried to factor them in. Again thanks for these great lectures with real data.
@Riffomonas
@Riffomonas 2 жыл бұрын
Thanks again for the video idea!
@haraldurkarlsson1147
@haraldurkarlsson1147 2 жыл бұрын
@@Riffomonas You are welcome. Glad to be able to help.
@johneagle4384
@johneagle4384 2 жыл бұрын
I have used nls and gsl_nl, I wonder how geomsmooth compares to these two other functions ( I guess they're basically the same thing..). Thank you very much. You are a great help. Learning R with you is fun.
@seckinbilgic
@seckinbilgic Жыл бұрын
I've been struggling for days to turn the Geom smooth line black. thanks.
@rishikeshdash12
@rishikeshdash12 2 жыл бұрын
If i want to put a linear regression model in microbiome data between a number of OTUs relative abundance with BMI, Then what will be the formula for testing their significance? should i go for testing single OTU relative abundance with BMI? But we can plot it in a single graph by using facet_wrap but don't know how correct it will be?
@Riffomonas
@Riffomonas 2 жыл бұрын
It would be something like richness~bmi. you'd also want to make sure that richness and bmi are both normally distributed. I'd be pretty reluctant to use relative abundances since you will likely have a ton of zero values that will mess with the calculations
@rishikeshdash12
@rishikeshdash12 2 жыл бұрын
@@Riffomonas Yes Sir, that's the nice point relative abundance have tons of Zero Values
@konormccracken
@konormccracken Жыл бұрын
#BringPatBack
@Riffomonas
@Riffomonas 7 ай бұрын
🤓
@rayflyers
@rayflyers 2 жыл бұрын
Forgive me if you've addressed this in a prior video, but is there a reason you still use the Magrittr pipe instead of the Base R pipe?
@Riffomonas
@Riffomonas 2 жыл бұрын
Not sure I have a "good" reason. I've used it for a long time and have never used the base R pipe ... I think it's far more commonly used, which avoids cognitive load for learners ... I think it's better than the base R pipe because you can indicate the piped data going to an argument with a . - This article seems pretty solid on the issue www.infoworld.com/article/3621369/use-the-new-r-pipe-built-into-r-41.html
@rishikeshdash12
@rishikeshdash12 2 жыл бұрын
One more thing sir update R version from 4.2.0 - "Vigorous Calisthenics" to 4.2.1 - "Funny-Looking Kid"
@Riffomonas
@Riffomonas 2 жыл бұрын
It really shouldn't matter if the version number changes in the third position
@rishikeshdash12
@rishikeshdash12 2 жыл бұрын
@@Riffomonas Yes sir got it
Stylizing the appearance of facet labels with ggplot2's facet_wrap (CC236)
23:38
The magrittr and base R pipe: what's the difference? (CC241)
25:47
Riffomonas Project
Рет қаралды 5 М.
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 104 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 76 МЛН
Visualizing Regression Models in R
1:03:44
Elijah Appiah
Рет қаралды 5 М.
How to combine multiple plots in R with cowplot and ggplot2 (CC098)
20:16
Riffomonas Project
Рет қаралды 21 М.
(Simplified) Linear Mixed Model in R with lme()
26:17
LiquidBrain Bioinformatics
Рет қаралды 72 М.
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН