# R programming for beginners – statistic with R (t-test and linear regression) and dplyr and ggplot | Video

R programming for beginners – This video is an introduction to R programming. I have another channel dedicated to R teaching: https://www.youtube.com/c/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.

READ ALSO:  Jeffrey Epstein: Just Another Thought

This video was sponsored by the University of Edinburgh. Find out more about their programmes at http://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.
Proudly WWW.PONIREVO.COM

READ ALSO:  Deep Learning Tutorials | Introduction to Artificial Neural Network of Deep Learning | Mr.Srinivas | Video

Source

1. excellent video finally someone bringing it at the right pace

2. played it at at 0.75x speed and it was perfect! thank you!

3. Great video! Following the Rchannel allready. Thx!

4. you are teaching something real interesting but your words are fast

5. Thanks for making this video. I am encountering trouble as a newbie R learner. When I try to run the following, I get an error in the t-test statement. It looks identical to what you have on the video.

library(gapminder)
library(dplyr)
x <- mean(gapminder\$gdpPercap)
print(x)
df1 <- gapminder %>%
select(country,lifeExp) %>%
filter(country == "South Africa" |
country == "Ireland") %>%
group_by(country) %>%
summarise(Average_life = mean(lifeExp))
print(df1)
t.test(data = df1, lifeExp ~ country)

I get this error when executing the last statement: Error in eval(predvars, data, env) : object 'lifeExp' not found. The preceding source is OK since x and df1 are printed correctly.

Just commented out the "group_by" and "summarise" and the pipe at the end of the filter(). That worked and t-test was run. Back to the drawing board.

6. slow it down to 0.75 and it'll feel normal(at least for me)

7. Hi i am trying to use "mutate" to add a new column B that calculates differences between, consecutive cells of column A… say B2 = A2-A1 , B3= A3-A2 .. etc , using diff() function, but since this new column has one element less , i get an error. Any ideas? I am a total newbie.

8. am I the only one here who thinks he's the older version of Ryan Reynolds!!!

9. it is very good! Except that package dyplr does not function with R 3.6.2. Any suggestions? I am running R through RStudio as you are.

10. Great tutorial! Which tool do you use to make these compelling videos?

11. How to add the regression equation and coefficient of determination

12. my students keep touching my laptop

13. Great video!! Thanks for this lesson 🙂 There's a typo at 5:00 (height)

14. Maybe for a beginners you should define some of the terms and be a little more in depth in the instructions.

15. The production value of this channel tho

16. Please how can I down load it this course for my later use.

17. 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.

18. Thank you for introducing the 'attach' and 'and then' (%>%) function and 'or' symbol! Efficient and clear.