Answered step by step
Verified Expert Solution
Link Copied!

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

  1. Age >= 20
  2. Living in Normal
  3. Female
  4. Customers who posted reviews
  5. Customers who live more than 10 miles (> 10) away from the store
  6. Customers who never returned products through offline store

Customer group Bs profile

  1. Age < 35
  2. Income < 85000
  3. Loyalty level = low
  4. Living in Bloomington
  5. Customers who live within 40 miles (<= 40) from the store
  6. Customers who never visited online store
  7. Customers who purchased products through offline store at least once

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

Students also viewed these Databases questions