Learn R Programming

desk (version 1.1.2)

data.tip: Tip Data in a Restaurant

Description

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.

Usage

data.tip

Arguments

Format

A data frame with three observations on the following two variables:

xthe guest's bill (in euro).
ythe tip given to the waiter/waitress (in euro).

Details

In Auer (2023, Chap. 3) and Auer et al. (2024, Chap. 3) these hypothetical data provide a minimal data set for estimating a simple linear regression model.

References

Auer, L.v., Hoffmann, S. & Kranz, T. (2024): Ökonometrie - Das R-Arbeitsbuch, 2nd ed., Springer-Gabler (https://www.oekonometrie-lernen.de).