Answered step by step
Verified Expert Solution
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
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 modelStep 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