PigFarming {UpDown}R Documentation

Simulated longitudinal phenotypes that mimics a pig-farming dataset subsected to disturbances

Description

Example of a dataset on which UpDown can be applied. It consists in simulated hierarchical data mimicking a pig farming-system dataset subsected to disturbances. The animals (id) were raised in 40 batches and in 15 pens within each batch leading to 15 animals per pen. Hence three hierarchical level are considered: id, pen and batch levels. Data were simulated following Le et al. 2022. <doi.org/10.1016/j.animal.2022.100496>

Usage

data("PigFarming")

Format

A data frame with 578847 individual observations on the following 6 variables:

id

the identifier of the animal

batch

the numero of the batch

pen

the numero of the pen

age

the age (in day) of the animal

time

the observation times

weight

the weight (in kg) of the animal

References

Le Vincent, Tom Rohmer, and Ingrid David. 2022. “Impact of Environmental Disturbances on Estimated Genetic Parameters and Breeding Values for Growth Traits in Pigs.” Animal 16 (4): 100496. https://doi.org/10.1016/j.animal.2022.100496

Examples

data=get(data(PigFarming))
str(data)
plot(subset(data,id==6)$weight)

[Package UpDown version 1.2.1 Index]