O'Reilly logo

Regression Analysis with R by Giuseppe Ciaburro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customer satisfaction analysis with the multiple logistic regression

To begin with, let us consider the data collected at a restaurant through customer interviews. The customers were asked to give a score to the following aspects: Service, Ambience, and Food. They were also asked whether they would leave the tip on the basis of these scores. In this case, the number of inputs is three and the output is a categorical value (Tip=1 and No-tip=0).

The input file to be used is shown in the following screenshot:

All the variables are shown in the following list:

  • CustomerWillTip
  • Service
  • Ambience
  • Food

This is a classification problem with three ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required