Question: 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 localsupermarket manager wants to use two independent variables, customer age (in years)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!