Linear Regression in R
Linear Regression in R
Learn how to perform linear regressions and ANCOVAs in R and how to understand the results
To become proficient in any statistical software, you need a strong foundation in running linear models.
In this six hour workshop, you will gain a strong understanding of how to run correlations and linear regression models in R.
You will learn the structure, defaults, and options in R’s lm() command and when each one is appropriate.
We will cover the various topics at a relaxed pace, and you will have many opportunities to ask questions.
The example data sets are taken from education and the physical sciences, but the ideas and syntax are applicable for performing linear analyses in every discipline, including business, the biomedical sciences, psychology and the social sciences.
After taking this workshop, you will be able to recognize when a linear model is appropriate, and then how to implement and interpret a linear regression model in R, and use your model as a predictive tool.
In this Workshop, you will learn:
Part 1: Simple Linear Regressions and Correlations in R
 Calculating Pearson’s correlations between two or more variables
 The syntax and options of the lm() command
 Interpreting R’s regression output
 How R stores regression coefficients, predicted values and residuals
 Graphing regression (best fit) lines and depicting the residuals
 Improving your regression model by eliminating outliers
 Testing the assumptions, working with outliers, and saving standardized residuals
 Using the gam() function to check linearity
Part 2: Fitting Multiple Linear and Polynomial Regression Models
 Fitting and graphing curved models using the lm() command
 Fitting nonparametric CART regression models using the tree() command
 Conducting multivariable linear models using the lm() command
 More on model assumptions and assessment for models with multiple predictors
Part 3: ANCOVA models
 How to conduct Analysis of Covariance in lm()
 How to interpret ANCOVA results
 Adding and interpreting interactions in an ANCOVA model
 Graphing data from an ANCOVA
 A brief introduction to Generalized Linear Models for count data
——————————————————————————
But can I keep up?
The workshop is pitched at a level that should make it of interest to both students and professionals.
You need some prior experience in R if you want to be able to use what you’ve learned. The material should be accessible to those somewhat new to R.
You do need to spend some time each week. You will learn concepts and get some clarity if you don’t practice what you’ve learned on your own. But you won’t entirely get it.
This is a workshop where you want to get your hands dirty with some data. Please expect to spend 23 hours per module just doing the exercises.
This workshop is for you if you:
 Have run linear regressions or ANCOVAs in another software package and want to learn how to do it in R.
 Wish to use linear regression, and want to expand your knowledge of statistical modelling generally.
 Have been using R, but would like to develop your R skills.
 Have the time to really invest in learning. It will require about 46 hours per week all together.
It is not for you if you:
 Are a complete beginner in statistics.
 Have never seen R before.
 Have no time to practice what you’ve learned.
Prerequisites:
 You will get the most out of the workshop if you have had at a minimum of one statistics class. You should have a good understanding of concepts like hypothesis testing, pvalues, and variance.
 You will need to have R installed on your computer.
 You should have some experience with R. You should have at least a basic understanding of how R handles objects, data, and how to input commands and read output.
The workshop is offered as an interactive, live online workshop + Membership Site
Attend the workshop live via webinar. You will hear the instructor and see exactly what is happening on his screen. Ask questions through phone, microphone, or chat.
During the webinar sessions, the instructor will present concepts and explain the meaning of the techniques in that module, demonstrate how to implement those techniques in R on different examples, and answer your questions.
You also get video screenshot recordings of each workshop session made available within 48 hours. So you can review the material right away, a year later, or while doing the exercises. Or if you need to miss one (or all!) of the live sessions, you can still participate on your own schedule.
You will also get a membership to the workshop site. The site is our home base for the workshop. It’s where you’ll find everything you need to support your learning of each module:
Text data files. These are real data files from real research projects. You get full access to use the data to try everything on your own.
Handouts with all the R code to run and explore all of the examples yourself. You won’t learn it unless you try it. So you’ll get my code so you can follow along.
Exercises. (Yes, homework!). You really need to practice this stuff. Get your hands dirty. So we’re giving you the data to try it on your own with new models to try out. But don’t worry–you won’t be on your own stuck on some coding error that won’t work. You’ll get the code to do the exercises and the answers in case you get stuck.
But best of all, you can submit questions. So if there’s something you thought was clear during the workshop, but isn’t now that you’re reviewing the explanatory material, just type in your question. David will answer quick questions right there on the website.
Bonus videos from some webinars on relevant topics to help jog your memory or clear up misunderstandings. Included are:
 The First 3 Steps to Statistical Modeling: How to Clarify the Research Question, the Design, and the Variables – Correlated Predictors in Multiple Regression–Understanding and Finding Multicollinearity – Dummy Coding and Effect Coding in Regression Models
You’ll have access for a year to this workshop membership site. So as we add resources, rerecord sessions, and answer more questions each time we offer the workshop, you have access to the updated material.
The Instructor:
David Lillis has taught R to many researchers and statisticians.
His company, Sigma Statistics and Research Limited, provides both online instruction and facetoface workshops on R, and coding services in R.
David holds a doctorate in applied statistics and is a frequent contributor to The Analysis Factor, including our blog series R is Not So Hard.
What Our Students Say About This Workshop:
“David was clear, knowledgeable, and responsive. Great handouts!”
 Anonymous
“For me, it was a good introduction to R, using simpler (well understood) statistical techniques that did not detract from the introduction to R.”
 Martin Watts, PhD
It was great to see someone using R ‘live’ to see how it works.
 Cate Bailey
The explanation was very clear, the topics were useful.
 Jose Hernandez
“Great format, great presenter.”
 Tom Bohon
“I am a new R user; It just gave me another motivation why I need to learn it further. Great work.”
 Essam Alshreafi
“Learned more efficient ways to parse data and evaluate the contents of a given data set. Very nice stuff! Overall, I thought this webinar was very well done. It was informative and moved at a great pace.”
 anon
“More on R from David would be great. His tips were wonderful.”
 Gary Kitchen
Thanks for this, thought it was great and what a magnificent way to teach people stuff… keep up the good work!
 Joop van Eerbeek
“It was a very thorough set of workshops, a good pace, and it should prove to be an asset to my future data analysis projects (assuming that I dedicate some time to reviewing the concepts presented in the series).”
 David Scott
“I would recommend this course because it provides a proper introduction to R, paving the way for a self directed learning in R.”
 Mohammed Ahmed
“The course was very well structured and David Lillis maintained a comfortable pace. The preclass materials were welcome, as were the postclass materials. They allowed us to run through the lesson in advance so that we could developed some experience with the methods. Knowing that we’d have postclass documents allowed me to relax during the class (I didn’t have to worry about taking extensive notes). Also, appreciated were the bonus materials. Any thing in advance of the class that either adds insight or prepare for the lesson is great.”
 Anonymous
The Details:
The live workshop sessions will be from 11am1pm EST on:
Monday, February 10
Wednesday, February 12
Friday, February 14
The live Question & Answer session will be on the following days and times:
Monday, February 24 11am12pm
Friday, February 28 23pm
Registration:
Regular Investment: $197
($70 student discount available.)
INVEST IN FULL: $197
Sorry, this workshop is full, and registration has closed.
To get first notice when it opens again, please join our Advance Discount List. Check out some of our other online workshops too!
Refund Policy: Your registration fee is fully refundable up to 72 hours in advance. Because enrollment is limited, no refunds will be granted after the program begins.

