knitr::opts_chunk$set(echo = TRUE)
# met <- rmdhelp::MendeleyExportToolR6$new()
# met$set_this_rmd_file(ps_this_rmd_file = ifelse(rstudioapi::isAvailable(),
#                               rstudioapi::getActiveDocumentContext()$path,
#                               whereami::thisfile()))
n_nr_feed <- 4
n_nr_cow_per_group <- 6

Problem 1: Experiment Evaluation

In the paper by Manzocchi et al 2020 r n_nr_feed different feeding treatments for dairy cows were compared. The different feeding treatments consisted of

tbl_feed <- tibble::tibble(Treatment = c(1:n_nr_feed),
                           Feed = c("hay",
                                    "grass-silage",
                                    "maize silage",
                                    "shredlage"))
knitr::kable(tbl_feed,
             booktabs = TRUE,
             longtable = TRUE)

From the results section of the paper, the values for energy corrected milk (ECM in kg/day) and coagulation time (CGT in min) of the milk are shown in the table below.

tbl_ecm <- tibble::tibble(Treatment = c(1:n_nr_feed),
                          ECM = c(24.3, 23.6, 25.0, 23.8),
                          CGT = c(11.0, 10.6, 10.5, 10.3))
knitr::kable(tbl_ecm,
             booktabs = TRUE,
             longtable = TRUE)

The standard errors of the means (SEM) for the above reported target variables were

tbl_sem <- tibble::tibble(Response = c("ECM", "CGT"),
                          SEM = c(1.18, 0.60))
knitr::kable(tbl_sem,
             booktabs = TRUE,
             longtable = TRUE)

The real experiment is designed according to an incomplete latin square where in two runs groups of six cows were assigned to each of the four treatments. For the purpose of this exercise, we simplify the experimental design and assume that groups of r n_nr_cow_per_group cows were assigned to the treatments all at the same time. The paper mentions that besides of the treatment numerous fixed effects (experimental run and interactions between treatments and experimental runs) and covariates (lactation stage) were considered. But unfortunately, no estimates for the different effects were given. Hence we are assuming that the treatment is the major effect on our responses.

Your Tasks

Your Solution

Problem 2: Significance and Size of Dataset

For some of the LM-analyses done in Problem 1, the results might not be significant. The same was also true in the paper. Their reported results were also declared to be non-significant. This might have two reasons.

  1. Either the generated dataset is just a "bad" example due to the unfortunate random numbers that were drawn or
  2. The size of the dataset is too small.

Check both reasons by implementing the following tasks

Your Tasks

n_nr_rep <- 30

Your Solution

References

Manzocchi, Elisa, Werner Hengartner, Michael Kreuzer, and Katrin Giller. 2020. “Effect of feeding hay vs. silages of various types to dairy cows on feed intake, milk composition and coagulation properties.” Journal of Dairy Research 87 (3): 334–40. https://doi.org/10.1017/S0022029920000801.

cat('\n---\n\n _Latest Changes: ', format(Sys.time(), '%Y-%m-%d %H:%M:%S'), ' (', Sys.info()['user'], ')_\n', sep = '')


charlotte-ngs/asmss2022 documentation built on June 7, 2022, 1:33 p.m.