knitr::opts_chunk$set(echo = TRUE)

Problem 1: Milk Dataset

Use the dataset milk from package pedigreemm and fit a sire model to each of the response variables (milk, fat, prot and scs) in the data. The dataset can be loaded using the command pedigreemm::milk. The other variables like lact and herd can be used as fixed effects. The sire column is used as a random effect. For this analysis, we assume that sires are unrelated.

Your Tasks

$$h^2 = \frac{4* \sigma_s^2}{\sigma_p^2} $$

Your Solution

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.