Learn R Programming

lme4 (version 0.99875-2)

cbpp: Serological Incidence of Contagious Bovine Pleuropneumonia in Ethiopia

Description

Contagious bovine pleuropneumonia (CBPP) is a major disease of cattle in Africa, caused by a mycoplasma. This dataset describes the serological incidence of CBPP in zebu cattle during a follow-up survey implemented in 15 commercial herds located in the Boji district of Ethiopia. The goal of the survey was to study the within-herd spread of CBPP in newly infected herds. Blood samples were quarterly collected from all animals of these herds to determine their CBPP status. These data were used to compute the serological incidence of CBPP (new cases occurring during a given time period). Some data are missing (lost to follow-up).

Usage

data(cbpp)

Arguments

source

Lesnoff, M., Laval, G., Bonnet, P., Abdicho, S., Workalemahu, A., Kifle, D., Peyraud, A., Lancelot, R., Thiaucourt, F. (2004) Within-herd spread of contagious bovine pleuropneumonia in Ethiopian highlands. Preventive Veterinary Medicine 64, 27--40.

Details

Serological status was determined using a competitive enzyme-linked immuno-sorbent assay (cELISA).

Examples

Run this code
## response as a matrix
(m1 <- lmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
            family = binomial, data = cbpp))

## response as a vector of probabilities and usage of argument "weights"
m2 <- lmer(incidence / size ~ period + (1 | herd), weights = size,
           family = binomial, data = cbpp)

## Confirm that these are equivalent:
stopifnot(all.equal(coef(m1), coef(m2)),
          all.equal(ranef(m1), ranef(m2)))

Run the code above in your browser using DataLab