March 2019
Beginner to intermediate
464 pages
10h 57m
English
Aggregate conversion rate tells us the overall performance of our marketing campaign. However, it does not give us that much insight. When we are reporting and tracking the progress of marketing efforts, we typically would want to dive deeper into the data and break down the customer base into multiple segments and compute KPIs for individual segments. We will first break our data into smaller segments by age and see how the conversion rates differ by different age groups.
We will look at the following code first:
conversionsByAge <- conversionsDF %>% group_by(Age=age) %>% summarise(TotalCount=n(), NumConversions=sum(conversion)) %>% mutate(ConversionRate=NumConversions/TotalCount*100.0)
The pipe operator, %>%, in ...
Read now
Unlock full access