Mastitis in dairy cattle is the inflammation of the udder and the most important disease in the dairy sector of the western world. Mastitis reduces the milk production and the quality of the milk. For this mastitis study, 100 cows were included into the study from the time of parturition (assumed to be free of infection). They were screened monthly at the udder-quarter level for bacterial infections. Since the udder quarters are separated, one quarter might be infected while other quarters remain free of infection. The cows were followed up until the end of the lactation period, which lasted approximately 300 to 350 days. Some cows were lost to follow-up, due to, e.g. culling. Because of the approximately monthly follow-up (except during July/August for which only one visit was planned due to lack of personnel), data are interval censored. Right censored data are present when no infection occurred before the end of the lactation period or the lost to follow up time. As visits were planned independently of infection times, independent noninformative censoring is a valid assumption.
Two covariates were recorded. The first is the number of calvings, i.e., parity. This is a categorical cow-level covariate with the following categories: (1) one calving, (2) 2 to 4 calvings and (3) more than 4 calvings and is also represented by two dummy variables (representing classes 2 and 3). The second covariate is the position of the udder quarter (front or rear). Both variables have been suggested in the literature to impact the incidence of mastitis (Weller et al., 1992; Adkinson et al., 1993).
Date are adopted from Goethal et al. (2009).
data(mastitis)
a data frame with 400 rows and the following variables
identification number of the cow.
factor
indication of the location of the udder (front
/rear
.)
indication of the location of the udder, 0 =
front
, 1 = rear
.
factor
variable indicating parity (1
/2-4
/>4
.)
dummy variable for a parity of 1.
dummy variable for a parity of 2 to 4.
dummy variable for a parity of \(>\)4.
lower limit of interval \((\)lower, upper\(]\) that contains time of infection.
upper limit of interval \((\)lower, upper\(]\) that contains time of infection.
censor indicator,
0 = right-censored, 1 = interval-censored.
Left-censored observations have a missing value in the lower limit
(ll
). Right-censored observations have a missing value in
the upper limit (ul
).
Adkinson, R. W., Ingawa, K. H., Blouin, D. C., and Nickerson, S. C. (1993). Distribution of clinical mastitis among quarters of the bovine udder. Journal of Dairy Science, 76(11), 3453-3459.
Goethals, K., Ampe, B., Berkvens, D., Laevens, H., Janssen, P., and Duchateau, L. (2009). Modeling interval-censored, clustered cow udder quarter infection times through the shared gamma frailty model. Journal of Agricultural, Biological, and Environmental Statistics, 14(1), 1-14.
Weller, J. I., Saran, A., and Zeliger, Y. (1992). Genetic and environmental relationships among somatic cell count, bacterial infection, and clinical mastitis. Journal of Dairy Science, 75(9), 2532-2540.
data("mastitis", package="icensBKL")
summary(mastitis)
Run the code above in your browser using DataLab