data.tip | R Documentation |
This is a data set on the bills and the corresponding tips given in a restaurant of only 3 guests. Is can be used as minimal example to illustrate simple linear regression. The larger version of this dataset (20 guests) is available as data.tip.all.
data.tip
A data frame with three observations on the following two variables:
x | the guest's bill (in euro). |
y | the tip given to the waiter/waitress (in euro). |
In Auer (2023, Chap. 17) and Auer et al. (2023, Chap. 17) these hypothetical data provide a minimal data set for estimating a simple linear regression model.
Auer, L.v. (2023): Ökonometrie - Eine Einführung, 8th ed., Springer-Gabler (https://www.oekonometrie-lernen.de).
Auer, L.v., Hoffmann, S. & Kranz, T. (2023): Ökonometrie - Das R-Arbeitsbuch, 2nd ed., Springer-Gabler (https://www.oekonometrie-lernen.de).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.