Skip to contents

Two-by-two contingency table of malaria (Plasmodium) infection status in control and egg-removal populations of Great Tit (Parus major).

Usage

GreatTitMalaria

Format

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

treatment

a factor with levels Control and Egg removal

response

a ordered factor with levels No Malaria and Malaria

Source

Oppliger, A., P. Christe, and H. Richner. 1996. Clutch size and malaria resistance. Nature 381: 565.

Examples


str(GreatTitMalaria)
#> 'data.frame':	65 obs. of  2 variables:
#>  $ treatment: Factor w/ 2 levels "Control","Egg removal": 1 1 1 1 1 1 1 1 1 1 ...
#>  $ response : Factor w/ 2 levels "Malaria","No Malaria": 1 1 1 1 1 1 1 2 2 2 ...

table(GreatTitMalaria)
#>              response
#> treatment     Malaria No Malaria
#>   Control           7         28
#>   Egg removal      15         15

if(require(vcd)) {
  mosaic(~treatment + response, GreatTitMalaria)
}
#> Loading required package: vcd
#> 
#> Attaching package: ‘vcd’
#> The following object is masked from ‘package:mosaic’:
#> 
#>     mplot