Learn R Programming

vcd (version 1.1-1)

Bundesliga: Ergebnisse der Fussball-Bundesliga

Description

Results from the first German soccer league (1963-2005).

Usage

data("Bundesliga")

Arguments

source

Homepage of the Deutscher Fussball-Bund (DFB, German Football Association): http://www.dfb.de/

Details

The data comprises all games in the first German soccer league since its foundation in 1963. The data have been queried online from the official Web page of the DFB and prepared as a data frame in R by Daniel Dekic and Achim Zeileis (replacing an earlier version of the data in the vcd package containing only two selected years). Each year/season comprises 34 rounds (except 1963, 1964, 1991) so that all 18 teams play twice against each other (switching home court advantage). In 1963/64, there were only 16 teams, hence only 30 rounds. In 1991, after the German unification, there was one season with 20 teams and 38 rounds.

References

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

See Also

UKSoccer

Examples

Run this code
data("Bundesliga")

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

## 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)

Run the code above in your browser using DataLab