Bundesliga {vcd}R Documentation

Ergebnisse der Fussball-Bundesliga

Description

Results from the first German soccer league in the years 1995/6 and 2001/2.

Usage

data(Bundesliga)

Format

A data frame with 612 observations and 6 variables.

HomeTeam
character. Name of the home team,
AwayTeam
character. Name of the away team,
HomeGoals
number of goals scored by the home team,
AwayGoals
number of goals scored by the away team,
Round
day of the game,
Year
year in which the season started.

Details

The data for the season 1995/6 is taken from Knorr-Held (1999), the data for the season 2001/2 was collected by Achim Zeileis.

Source

SFB 386 ``Statistical Analysis of Discrete Structures'' http://www.stat.uni-muenchen.de/service/datenarchiv/bundesliga/bundesliga.html

References

Leonhard Knorr-Held (1999), Dynamic rating of sports teams. SFB 386 ``Statistical Analysis of Discrete Structures'', Discussion paper 98.

See Also

UKSoccer

Examples

data(Bundesliga)

## independence of home and away goals
tore95 <- xtabs(~ HomeGoals + AwayGoals, data = Bundesliga, subset = Year == 1995)
tore95
mosaicplot(tore95, shade = TRUE)

## number of goals per game poisson distributed?
ntore1 <- xtabs(~ HomeGoals, data = Bundesliga, subset = Year == 1995)
ntore2 <- xtabs(~ AwayGoals, data = Bundesliga, subset = Year == 1995)
ntore3 <- table(apply(subset(Bundesliga, Year == 1995)[,3:4], 1, sum))

gf1 <- goodfit(ntore1)
gf2 <- goodfit(ntore2)
gf3 <- goodfit(ntore3)

summary(gf1)
summary(gf2)
summary(gf3)
plot(gf1)
plot(gf2)
plot(gf3)

Ord.plot(ntore1)
distplot(ntore1)

[Package vcd version 0.1-3.5 Index]