R programming for beginners - statistic with R (t-test and linear regression) and dplyr and ggplot
Vložit
- čas přidán 8. 05. 2024
- R programming for beginners - This video is an introduction to R programming. I have another channel dedicated to R teaching: / rprogramming101 In this video I provide a tutorial on some statistical analysis (specifically using the t-test and linear regression). I also demonstrate how to use dplyr and ggplot to do data manipulation and data visualisation. Its R programming for beginners really and is filled with graphics, quantitative analysis and some explanations as to how statistics work. If you’re a statistician, into data science or perhaps someone learning bio-stats and thinking about learning to use R for quantitative analysis, then you’ll find this video useful. Importantly, R is free. If you learn R programming you’ll have it for life.
This video was sponsored by the University of Edinburgh. Find out more about their programmes at edin.ac/2pTfis2
This channel focusses on global health and public health - so please consider subscribing if you’re someone wanting to make the world a better place - I’d love to you join this community. I have videos on epidemiology, study design, ethics and many more.
Get my FREE cheat sheets for Statistics and Research Methods (including transcripts of these lessons) here: www.learnmore365.com/courses/statistics-research-methods-resource-library
We’re paying thousands to the universities that pay thousands to lecturers, just to learn statistics for free in videos like this. This guy is the best statistics lecturer ever.
WOW - what a fantastic comment. Thanks !!
B
Hi there - thanks for your comment about my R video on CZcams. I've just launched a channel that focusses just on R teaching. First video was posted this week. Here is the link: czcams.com/video/9kYUGMg_14s/video.html
@@gregmartin wow thanks I have just subscribed to your new channel.
True but I look at it kind of like that douche in Good Will Hunting i'm not really paying to learn, though that is a bonus, i'm paying to have a qualification i can parlay into a good job.
You are an absolute beacon in the darkness that has been my understanding and application of R , and you helped me remember all the stats from my masters a decade ago. In short, I couldn't have done my assignment without you. Love your presenting style and method of demonstration. Thank you for passing on your affinity with R!
I swear this is probably one of the best R introduction I ever watched!
This video was the one that "turned the key" in my head and made me understand the logics of R. Really great job.
Agree, the penny just dropped.
Hi Greg. This video is the reason why I subscribed to your channel. Why?
1) The pacing of the information is just right (it's fast enough that it doesn't 'drone' on and on) ... and the rapid pace only works because ...
2) The zooming in on the where the audience's attention should be is VERY clear.
3) You chunk the different parts of the lesson, which helps to know what is being worked on.
4) You BUILD up on the final product, so the audience can see the incremental changes from beginning to end.
5) You MINI lesson concepts that you suspect the audience may not have complete knowledge of (t Tests, log plots, linear regression)
6) You save the in-depth explanation of certain sub-topics to other videos! Awesome. Focusing only on the lesson at hand.
7) You managed to squeeze an hour-long concept into a 15-minute video. 'Nuff said.
8) You didn't bother the audience with how to install R, R-Studio, etc. Thank you (this is probably just a personal preference).
9) I'm a teacher. This make me want to explain topics that I teach better.
Thanks for the lovely feedback Marian - I really appreciate it. I enjoy teaching and am delighted to learn that some of what I create is useful. I'll definitely be creating more content soon (especially after your encouraging comments). :)
Marian Minar Iam watching after reading your comments
@@gregmartin
I need help Greg I have exam on regression will you help me please
It's the best R tutorial I've ever met. Thanks~
Ah - thanks for the very kind comment Jack. I'll create more R videos soon!
Global Health with Greg Martin Looking forward
I have yet to see a better R tutorial. You are the man. The video was straight to the point.
Greg I really appreciate your enthusiasm and simple breakdown of R.
Although this isn't new to me, being at the end of my undergrad psych degree, I must say, this is the best introduction to statistics for University students I've ever come across (judged by pragmatism, conciseness, and spirit)
Thank you for the lovely feedback!
Hey, thanks so much for this vid!!
I'm currently struggling to do some data analysis on behavioural data for my thesis and this was very useful in helping me filter out some of the variables that I need excluded in another dataset. I just need to figure out how to do that now! 😅
Your exceptional ability to cover lots of concepts and techniques in shortest possible videos, is highly commendable! Thanks a lot for all the stuff!
Thanks for the feedback - much appreciated. I have a new CZcams channel that focuses on R programming.. czcams.com/users/rprogramming101
Brief, to the point, spot on, engaging, fast! If I had teachers like that I would not have dropped out of school.
Thanks Christian - i really appreciate the feedback. Glad you found the video useful! I have a new channel that focuses just on R programming - check it out czcams.com/users/Rprogramming101
Great video, I would love for you to do another one on R. We all have so much data and need to think of ways we can visualize it in a meaningful way.
Hi Brandon - thanks for the suggestion. I'll definitely create more R videos. I really enjoy R (I haven't been using it long but am loving it).
Agreed Brandon. More R videos would be excellent. Perhaps with examples on how to depict data within a more confined population such as patients in 3 hospitals?
Thanks for the suggestion Thomas - will do :)
Brandon Bullough more videos to come. 😎
We are awaiting...
One of the best R tutorials that I ever seen, thank you vary much, I wich that you will bring more.
chouaib bio thanks so much. For saying so. Glad you liked it 😀
chouaib bio pasaje biblico
Hi there - thanks for your comment about my R video on CZcams. I've just launched a channel that focusses just on R teaching. First video was posted this week. Here is the link: czcams.com/video/9kYUGMg_14s/video.html
Cjv
This is great! Been muddling thru trying to learn R on my own. You make it look so easy. Thank you!
Thank you for you give this course free which I did not get when I was attending in university class. I motivated and feel confidence to do and continue a research in one of health problems.
I decided to watch all your lessons. Your preference style needs to be chosen as a standard. Сoncretely and just perfect!
Hilala Jafarova thanks for the very kind comment.
Hilala Jafarova single day and night and you can come over here and there are no good morning baby girl is that
This video is amazing, very dynamic and straightforward, exactly what I needed. Hugs from Brazil :D
Thanks for the feedback Gabriel - I'm glad you liked the video. I'll definitely be creating more like it in the near future. Happy day. Greg
simply magnificent! thanks a lot for opening my eyes to this wonderful world of R!
Absolutely awesome video! I’ll be coming back to it many times in the near future and I’m so excited to see that you have other videos.. Thank you!
you are a wonderful teacher. it would be great if you continued posting videos to your R channel. I'm sorta surprised that you are not posting to this channel during Covid-19.
The best series I've seen so far.
Thanks!! that's a very kind comment!! :)
@@gregmartinReginaldo f3
Best intro video I could have imagined.
So many useful commands and insights in so little time, without being to much.
Thanks for the feedback. I'll be creating new content soon (glad you liked it)
You are awsome. Never saw any tutorial so concentrated and straight forward.
You just developed my interest in R. Thank you for presenting it in such an interesting way. It was amazing!
Priyanka Rana glad you liked it. Thanks for the feedback 😀
S
This is really really great but far from being for beginners, when I was a beginner I did not understand probably 80% of what is being said here. You need to have a solid foundation in Stats to get this. Maybe this video acts a motivation for people to learn Stats and R.
I agree. I'm not from the programming field and the amount of time and energy I use learning R sometimes makes me wonder if learning it is worth. Should I be taking my hours of study to improve skills in a more compreensive software? I frequently think about that.
It may not be "beginner" but for the length of this video and the likely audience, it's perfect
I really enjoyed your video thanks for introducing me to R very excited to know how to install and use this for population health planning
Straight to point, fast and full of information. Love the way you teach.
Thanks Jagan. More to come soon I promise. Glad you liked it. Thanks for the feedback.
Hi,
Wonderful video, thank you.
A small correction @6:32 , install.packages("dyplr")..
It's "dplyr" .
thanks for pointing that out (blush) :)
I was frustrated and stopped following due to all the error because i typed "dyplr". Its my second day in R. Thanks for the video. Learning at youtube from scratch
Ran into the same issue, and only found the answer by scrolling through the comment section. CZcams tip: you can insert annotations so you don't have to redo your recording. Great tutorial
Hi there - thanks for your comment about my R video on CZcams. I've just launched a channel that focusses just on R teaching. First video was posted this week. Here is the link: czcams.com/video/9kYUGMg_14s/video.html
You are an amazing teacher
Beauty Deegan thanks very much. That's a very kind comment. 😀
I’m working on an R video and looking for inspiration, and this is one of the best tutorial videos I’ve ever seen. I know it’s a ton of work to make an expertly paced, high production value video like this, and you knocked it out of the park!
Wow, thanks!
As someone that struggled to understand and start using R for many years, this was awesome. I now try to use R for all my analyses and I learned a lot from this. :)
Glad that you found the video useful Silvia - will create more soon. Good luck.
Awesome video,Keep it up!
Glad you liked it! Thanks for the comment.
I think,this is the most clean video to learn R for beginners. Nice job
thanks Octe - glad you found it helpful.
Dr Martin does it again. Thank you University of Edinburgh for making it possible. For my graduate students - this is Wonderful to introduce R programming. Important skill development for research data studies. Thanks, Greg.
Terry you are too kind. Thanks for the comment though and I hope that your grad students find this helpful.
I recently embarked on R and finding your first lesson extremely helpful. Surely will be following you for other lessons.
Thanks Kganesto
University TAs are talking nonsense for hours and hours. This guy just taught me how to use R in 16 min.
Preach
This video is really awesome, now I can use R because of this video, great job @Greg Martin!!!!
This is probably the best video I have ever watched in this topic. Thanks so much!
I was having trouble getting started but found my error. Please explain that to execute a command you must hit Ctrl+Enter and not just Enter. Everything worked great after that. Thanks for the great video!
Great point Ian!! :)
thanks
Thanksssss!
THANK YOU! 30 minutes if pulling my hair out until I found this comment
Thank you for such a great tutorial! :) Would you be so kind and recommed me a source on how to perform latent aspect rating analysis using R? Thank you in advance!
No one teaches like Greg. Just simple and elegant.
Thank you, your explanations and the examples you provided is very clear and covers a lot for my understanding of ggplot.
after i impu data("gapminder"), this warning jumps telling me that data set gapminder does not exist. any clue why this happens?
Only put gapminder, without quotes
Install dpylr
Please do more in DataScience!!!
Hi Hemakumar - thanks for the message. Will do :)
This video reinforced the materials I have learned in my program, but I will definitely explore R more. It is a great statistical skill to have.
Glad to hear it Stephane. I'll post some more R videos in the future. Happy day. Greg
The only English man i could follow along in my 10 year tenure with youtube, Sir. Greg Martin. 😊❤
South African, not English
2:10 Where do we find gapminder?
Very useful video
Ps upload more videos
Wow
Ok grazie or mi
Bennaniyass123@gmail.com
I need help I have a assignment on regression
An AWESOME video. Wow, you managed to incorporate Stats and R programming basics in a minimal time span. Love it. Thank you.
Thanks for the feedback Anthony! :) much appreciated.
fast, clear , high standard , perfect teaching alas you could drop more videos in youtube for R
Thanks for the feedback Durgesh! I'll create more R videos for sure!!
I'm here from accidentally typing up "r" on google...
This ain't Roblox-
lol yes
same
omg lol same
At 12:39 I keep getting the error, Error in gapminder %>% filter(gdpPercap < 50000) %>% ggplot(aes(x = gdpPercap, :
could not find function "%>%".
you might need to install the DPLYR package first
Same problem even after installing dplyr
Insane!. You saved me, now I can do well in today’s semester end exam
This is my very first comment ever for a CZcams video, and I would like to give the full credit to you simply because you gave the best lecture of R programming for the beginners. I am amazed how you managed to make it simple, understandable as well as intriguing, which made me want to learn more. And yes, I immediately subscribed:) 👍
Thanks for the lovely comment Jing. I really appreciate the feedback. I'm glad that you enjoyed the video and I will definitely make more of them in the future. Greg
Warning in install.packages :
package ‘dyplr’ is not available (for R version 3.6.3)
install.packages('dplyr', repos = 'cloud.r-project.org')
I downloaded R 3.4.2 and R studio, but I cannot download the gapminder data. It displays a warning message with data set 'gapminder' not found.
Thanks for letting me know. Let me see what I can find out.
Same here. I really enjoy watching your videos throughout grad school and now I'm working for the CDC :) Keep up the great work! This is the error I received.
The downloaded binary packages are in
/var/folders/w3/k3bxngks2cd34gh6msjz_t3h0000gn/T//RtmpIQQO9Q/downloaded_packages
> Warning in install.packages :
package ‘/var/folders/w3/k3bxngks2cd34gh6msjz_t3h0000gn/T//RtmpIQQO9Q/downloaded_packages
’ is not available (for R version 3.4.2)
I have similar problem. I downloaded the package "gapminder" (1.9MB) but after it, I cannot open it on the global environment.
I have a confession to make, you made me a Pro using large datasets. God bless you Greg!!
Love this video! I wish you had more video's on R, it's a great teaching style and easy to follow
More to come Zoe (I promise). Thanks for the feedback.
Good stuff. But tedious sound effects
Thanks for the feedback Anthony. Will use fewer sound effects in future. :)
@@gregmartin Don't you dare! The sound effects are wonderful.
Finally someone without an Indian accent... Thanks!
Haha - well it won't be long before you're sick my of South African accent :)
is it south africanm i thought its Cockney :D. it very chilling btw:D
whats the problem w indian accent..you chinese?
Say that again hey
Chinese problem
That was awesome! Thank you. I can't wait to study R tomorrow after watching that.
This is awesome, just what I needed. Thank you so much for posting this video with the jazzy effects too!
Glad you enjoyed it! Thanks!
thanks for the video but the sound of applause and cheering at the end of the video scared me
the statistical part is a bit unprecise and incorrec in a general contextt!!!
Jonathan thanks for the feedback. I'm sure you are right I'm really a beginner with R and am not a statistician (hopefully my demonstration wasn't too far off though) 👀
Global Health with Greg Martin no, it was a good video, but in general one has to be careful about what is formally correct
Yes- I agree👍🏻
This is amazing. I really learn a lot from this video about R and how it works. Thank you.
You are most welcome Yun
The most easiest explanation to understand, and very straight forward! I wish you could make more tutorial in the future!
Hi Rico - I have a R programming channel - search for RProgramming101 and you'll find it.
Excellent! A big thank you for helping me start my R journey!
I didn't understand a lots of things, but your representation made me watch again and again....Thanks a lot sir.
You are most welcome - glad you found it helpful!!
I just self-learn for R programming, and this video sums up the practical method with clear explanation. My suggestions : slower speech so we can catch the subject, and video categorized "R" so we can collect and learn with the same subject :D
Awesome powerpacked video! and there is no useless rant in between. Thanks for sharing!
Thanks for the feedback Aman - much appreciated. Will try to create more in the near future!
amazing video. i learned a lot fromthis short video. thank you
at minute 14:
gapminder %>%
filter(gdpPercap < 50000) %>%
ggplot(aes(x=log(gdpPercap),y=lifeExp)) +
geom_point(alpha=0.3, aes(color=year, size=pop)) +
geom_smooth(method=lm) +
facet_wrap(~continent)
Lover Of Life you are most welcome!
Thank you soooo much. I was coming across too many videos that were explaining what vectors,packages, etc were... but they didn't use real life data to explain them so I was getting confused. Applying real data to the tutorial was VERY helpful!!
Glad it was helpful! You're welcome :)
Great tutorial - covers so much in a small amount of time!
Very useful. I am facing troubles to do my RProgramming exam at University. It will help me a lot. Thank you. You are great
Just started to learn R. Your videos are brilliant. You’ve earned yourself a subscriber :)
This video really helped me!! Please keep them coming, you are really helping me with my stats course
Thank you very much Greg!! I love your tutorial and decide to watch all the others as well!!
Thanks you for the feedback. I've also started a new CZcams channel that focuses just on R programming. Here is the link: czcams.com/users/rprogramming101
Really awesome presentation!!!. I had always seen plots made with the "dplyr" package but finally learnt how to produce it today. Thank you so much!
Glad you liked it - thanks!
This is one of the most usefull R statistics video I have ever seen on CZcams. Thank you pal !
Wow, thanks!
As part of my job, I've spent a combined 7 years using JMP and Minitab for statistical analysis. I've starting delving into R and found it a bit of a headache to use (the luxury of having GUI's!), but R is free so no complaints.
This was a great tutorial and you made it very easy to follow. I already knew the statistics (which you did a good job explaining) but it was good to follow the coding. Thanks!
Glad you liked it - thanks for the feedback. I've recently started a new channel that focuses just on R - here is the link: czcams.com/users/Rprogramming101
can I just say that the audio effects were spot-on hilarious :) love the funny details that spice the learning process!
Thank you very much. Great video and perfect style. Easy to understand.
Glad you liked it🎉 more to come. Thanks for the comment. Happy day. Greg
So many expert with an abundant knowledge, but to make other person understanding it, it's different skill. You're really great at explaining..
More R videos please 😄
Thanks Durio - more videos to come for sure..
This is called a perfect video, Thank you Greg.
Thanks. What a lovely complement. Much appreciated. 👍🏻
excellent video finally someone bringing it at the right pace
This is the presentation inspired me to jump into R right away, many many thumbs up...
Great to hear Tabin - I hope you enjoy!!
Great video! Thank you so much for this! I'll share it with colleagues who are intimidated by R but want to learn :)
Thanks very much - I appreciate you sharing it! Happy day, Greg
What a Teacher.....Very good Respect🙏
A great and particular insight into the immense word of the statistics and of course these fantastic cutting edge tool called R.
Thanks so much Greg, I now understand the dplyr and ggplot2 functionality
Glad it was helpful! Thank you for the feedback.
Thank you good Sir!
This video made me muster the courage to go and try to play around in R. So far I was quite intimidated to take the first step.
Happy to hear that! You are most welcome!
Absolutely bloody (if you'll forgive my French) amazing. Thank you!
this is actually really good compared to the other videos on youtube
Really a good video on R programming. Thanks Greg
You are most welcome Satheesh!! Glad you liked it!
Thank you for a great video. It helps analyse my cross-sectional study result.
Glad it was helpful!
You’re the best. You really did an impeccable work. Thank you very much.🙏
You are most welcome. Glad you liked it.
Wow so much explanation in such a short video... Thanks a ton 👍👍👍👍
Excellent video which reminded me alot of statistical concepts. Thanks alot Greg
Glad it was helpful!