BeerTaste | R Documentation |
This data contains results from a beer liking study where 34 persons tasted nine different beers. The consumers tasted three different types of beers with three levels of alcohol percentage. Each beer were graded a liking score from 1 to 7, where a score of 1 means that the consumer did not like the beer at all and a score of 7 means that the beer was very good.
BeerTaste
A data frame with 34 observations (rows) and 12 variables (columns).
Column name | Data type | Description | Values | |
[,1:9] | A1...SL3 | integer | Liking scores for each beer | (1 - 7) |
[,10] | AGE | factor | 2 age groups: young and old consumers | (O, Y) |
[,11] | Gen | factor | The gender of the consumer | (F, M) |
[,12] | Pos | factor | If the consumer is student or worker | (S, W) |
AGE
has two levels: 'Y' for young consumers less than 40 years old and
'O' for consumers older than 40.
Three different types of beers:
A: | Ale (dark beer) |
L: | Lager (light beer) |
SL: | Strong lager |
The numbers behind each of the characters, which represents the beer type, give the alcohol level for the beer. The higher the number, the higher alcohol level.
# The structure of the object
str(BeerTaste)
# Covariance matrix for female consumers
cov(BeerTaste[BeerTaste$Gen =="F", 1:9])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.