For my master thesis, I have a study consisting of 1 independent variable (digital media channel; level 1 = email, level 2 = social media), 1 pure moderator variable (client type; level 1 = existing client, level 2 = potential client) and a metric dependent variable (intention to click (ITC); answered on a 5-point Likert scale).
Only now I am stuck as I do not know how to conduct a multiple regression analysis for an A/B test. I have the following variables in my dataset:
- ITC for email (value: 1, 2, 3, 4, 5)
- Client type for email (value: 0, 1)
- ITC for social media (value: 1, 2, 3, 4, 5)
- Client type for social media (value: 0, 1) I can create a dummy variable for whether a participant is exposed to email or social media. Here’s a sample of my data:
structure(list(ITCEmail = c(4, 2, 5, 2, 4, 2), ClientEmail = c(0, 0, 1, 1, 1, 0)), row.names = c(NA, -6L), class = c("tbl_df", "tbl", "data.frame"))
I am not sure if I have to conduct to separate regressions; one for email and one for social media.
model.email <- lm(ITCemail ~ clientemail, data = study1email)
I tried several things, among which the above one. However, now client email looks like the IV. My regression equation is the following:
Y = b0 + b1x1 + b2x2 + b3(x1*x2) + e
Can somebody help me with how I correctly formulate the data in the A/B test?
Which code should I put down to compare both digital media channels (as well as the influence of client type) on ITC?