Cavalry: Deaths from Horse Kicks

Description Format Source Examples

Description

Numbers of deaths resulting from horse kicks per regiment-years for the Prussian army.

Format

A data frame with 5 observations on the following 2 variables.

deaths

a numeric vector

count

a numeric vector

Source

Bortkiewicz, L. 1898. Das Gesetz der Kleinen Zahlen (Teubner, Leipzig), as cited in Larson, R.J. and M.L. Marx. 1981. An Introduction to Mathematical Statistics and its Applications. Prentice-Hall: Englewood Cliffs, NJ.

Examples

1
2
3
4
Cavalry
xyplot(count ~ deaths, Cavalry, type='h', lwd=4)
barchart(count ~ deaths, Cavalry, horizontal = FALSE,
         box.ratio = 1000, origin=0)

Example output

Loading required package: nlme
Loading required package: lattice
Loading required package: grid
Loading required package: mosaic
Loading required package: dplyr

Attaching package: 'dplyr'

The following object is masked from 'package:nlme':

    collapse

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: ggformula
Loading required package: ggplot2

New to ggformula?  Try the tutorials: 
	learnr::run_tutorial("introduction", package = "ggformula")
	learnr::run_tutorial("refining", package = "ggformula")
Loading required package: mosaicData
Loading required package: Matrix

The 'mosaic' package masks several functions from core packages in order to add 
additional features.  The original behavior of these functions should not be affected by this.

Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.

Attaching package: 'mosaic'

The following object is masked from 'package:Matrix':

    mean

The following objects are masked from 'package:dplyr':

    count, do, tally

The following objects are masked from 'package:stats':

    IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
    quantile, sd, t.test, var

The following objects are masked from 'package:base':

    max, mean, min, prod, range, sample, sum

  deaths count
1      0   109
2      1    65
3      2    22
4      3     3
5      4     1

abd documentation built on May 2, 2019, 2:14 p.m.