March 2019
Beginner to intermediate
448 pages
13h 14m
English
In the following example, we will load a dataset containing house prices and several variables. We will direct our attention towards the first assumption we have previously defined (that the residuals should be homoscedastic: in other words, have the same variance):
data = read.csv("./people_shopping.csv") model = lm(sales ~ people_in + discount,data=data)
plot(model)
The following screenshot shows the Residuals vs Fitted. The variance is non-constant:
Read now
Unlock full access