March 2019
Beginner to intermediate
448 pages
13h 14m
English
We will work with the same dataset that we used for the previous chapter, which contains the sales in a shop, and two features (the number of people that entered the shop and the discount that was done to all clients on each day):
data = read.csv("./people_shopping.csv") model = lm(sales ~ people_in + discount,data=data) library("lmtest") bptest(model)
summary(model)
We reject the null hypothesis of homoscedasticity:

Read now
Unlock full access