This document discusses how to check for and address non-normal distributions of errors when modeling data in R. It outlines steps to create and store residuals from a linear model, display residuals through histograms and QQ plots, test the normality of residuals using the Shapiro-Wilk test, and repair any non-normality through improving the model or transforming variables. Key R packages mentioned are stats, tidyverse, and modelr.
Original Description:
Original Title
Micro lecture 560 6 checking and fixing non normality in R R
This document discusses how to check for and address non-normal distributions of errors when modeling data in R. It outlines steps to create and store residuals from a linear model, display residuals through histograms and QQ plots, test the normality of residuals using the Shapiro-Wilk test, and repair any non-normality through improving the model or transforming variables. Key R packages mentioned are stats, tidyverse, and modelr.
This document discusses how to check for and address non-normal distributions of errors when modeling data in R. It outlines steps to create and store residuals from a linear model, display residuals through histograms and QQ plots, test the normality of residuals using the Shapiro-Wilk test, and repair any non-normality through improving the model or transforming variables. Key R packages mentioned are stats, tidyverse, and modelr.
low, it is very unlikely these data are from a random sample from a normal distribution. 4. Repairing the non-normality problem 1. Creating a better model
2. Transforming the y-variable.
4. Repairing the non-normality problem Aim Checking non normal distributions of errors using R.
Creating and storing the residuals
Displaying the residuals Testing the distribution Repairing the problem Checking and fixing non normality using R