Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE EXPLAIN WITH R CODES AND EXPLANATION OF VALUES The local supermarket manager wants to use two independent variables, customer age (in years) and whether

image text in transcribedimage text in transcribed

PLEASE EXPLAIN WITH R CODES AND EXPLANATION OF VALUES

The local supermarket manager wants to use two independent variables, customer age (in years) and whether the customer subscribes to the supermarket chain's health/wellness e-newsletters (coded as 1= yes and 0= no) to predict which customers are likely to purchase a new line of organic products. Data from a random sample of 100 loyalty program customers (OrganicDecision. x/sx ) show that 65 have purchased the organic products (coded as 1) and 35 have not (coded as 0). a. Develop a logistic regression model to predict the probability that a customer purchases the organic products, based on age and whether the customer subscribes to the supermarket chain's health/wellness e-newsletters. Interpret the PEA and APE measures of marginal effects for the two explanatory variables. b. At the 0.05 level of significance, is there evidence that a logistic regression model that uses customer age and whether the customer subscribes to the supermarket chain's health/wellness e-newsletters to predict the probability of purchasing the organic products is a good fitting model? c. At the 0.05 level of significance, is there evidence that customer age and whether the customer subscribes to the supermarket chain's health/wellness e-newsletters each make a significant contribution to the logistic model? d. Create a confusion matrix to check the accuracy of your model

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

More Books

Students also viewed these Databases questions

Question

Explain the serial-position curve and why it occurs.

Answered: 1 week ago

Question

MD 1 9 " . ( ) ( ) . - , / "

Answered: 1 week ago