{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE)
note: You can also perform this analysis using Excel We would like to see which campaign lead to more product sales in 2 different ways below.
```{r echo=TRUE} #now we do an analysis for a predictor with 4 different levels display <- read_csv(“ab_testing.csv”) ls(display) # list the variables in the dataset head(display)
displayAds<−factor(displayAds) is.factor(displayAds) # showing the first 15 rows of the variable "Ads" displayAds[1:15]
#now we do a regression analysis for a predictor with 4 different levels summary(lm(Purchase~Ads, data = display))
## Example 2.2 -An A/B test with 4 different advertising campaigns (no dummy coding required)
```{r echo=TRUE}
#Alternatively, you can also use the factor function within the lm function, saving the step of creating the factor variable first.
summary(lm(Purchase~ factor(Ads), data = display))
Reference: Understanding R programming over Excel for Data Analysis https://www.gapintelligence.com/blog/understanding-r-programming-over-excel-for-data-analysis/
A/B Testing: Test Your Own Hypotheses & Prepare to be Wrong - Stuart Frisby
https://www.youtube.com/watch?v=VQpQ0YHSfqM&t=189s
Naiman 2020. Design Thinking as a Strategy for Innovation. https://www.creativityatwork.com/design-thinking-strategy-for-innovation/
Tellis 1987. Marketing Science. https://www.msi.org/reports/advertising-exposure-loyalty-and-brand-purchase-a-two-stage-model-of-choice/
https://stats.idre.ucla.edu/r/modules/coding-for-categorical-variables-in-regression-models/
Create an A/B test, https://support.google.com/optimize/answer/6211930?hl=en Experiments at Airbnb,https://medium.com/airbnb-engineering/experiments-at-airbnb-e2db3abf39e7
Your Step-by-Step Guide to A/B Testing with Google Optimize, https://www.crazyegg.com/blog/ab-testing-google-analytics/
https://firebase.google.com/products/ab-testing
https://www.sitepoint.com/perform-ab-testing-google-optimize/
https://marketingplatform.google.com/about/optimize/features/