March 2019
Beginner to intermediate
464 pages
10h 57m
English
Let's take a deeper look at the data. In this section, we are going to focus on understanding the distributions of sales, market sizes, store locations, and store ages used to test different promotions. The goal of this analysis is to make sure that the controls and attributes of each promotion groups are symmetrically distributed, so that the promotion performances among different groups are comparable to each other.
The total sales distributions across different promotions can be visualized using the following code:
salesPerPromo <- df %>% group_by(Promotion) %>% summarise(Sales=sum(SalesInThousands))ggplot(salesPerPromo, aes(x="", y=Sales, fill=Promotion)) + geom_bar(width=1, stat = "identity", position=position_fill()) ...
Read now
Unlock full access