R was built for statistics, and this module shows why. You'll start with hypothesis testing, using functions like t.test() to compare groups and interpret p-values and confidence intervals, then move on to linear regression with lm() to describe how one variable relates to another.
You'll learn to read model output with summary(), plot a fitted regression line, and check the assumptions behind your model so you know whether to trust it. The lessons mix short demonstrations of individual tests with longer walkthroughs of complete models.
Watch the lessons in order, then continue on to Functional Programming & Performance.
A short demonstration of how to run a hypothesis test in R with the t.test command and read its result.
Shows how to perform an independent samples t-test and a linear regression in R, side by side on the same kind of data.
Fits a linear regression model with the lm() command, then shows how to plot the regression line over the data.
Explains how to test the assumptions behind linear and multiple regression in R, so you can judge whether a model can be trusted.