Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use R or R studio to solve the following: Suppose we have the two customer groups profiles as below. What is the average offline
Please use R or R studio to solve the following:
Suppose we have the two customer groups profiles as below. What is the average offline spending for the customer group A who match all of the following conditions? What is the average offline spending for the customer group B who match all of the following conditions? Which group of customers spend more in the offline store on average? Suppose the dataset is called sales. How would you code the following to get results?
Customer group As profile
- Age >= 20
- Living in Normal
- Female
- Customers who posted reviews
- Customers who live more than 10 miles (> 10) away from the store
- Customers who never returned products through offline store
Customer group Bs profile
- Age < 35
- Income < 85000
- Loyalty level = low
- Living in Bloomington
- Customers who live within 40 miles (<= 40) from the store
- Customers who never visited online store
- Customers who purchased products through offline store at least once
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started