knitr::opts_chunk$set(echo = TRUE)

Problem 1: Sire Model

s_ex10_p01_data_path <- "https://charlotte-ngs.github.io/asmss2022/data/asm_ped_sim_data.csv"
if (!params$isonline)
  s_ex10_p01_data_path <- file.path(here::here(), "docs", "data", "asm_ped_sim_data.csv")

sigma_u2 <- 9
sigma_s2 <- sigma_u2 / 4
sigma_e2 <- 36

Use the following dataset to predict breeding values using a sire model. The dataset is available from

cat(s_ex10_p01_data_path, "\n")

Hints

Your Solution

Problem 2: Animal Model

s_ex10_p02_data_path <- "https://charlotte-ngs.github.io/asmss2022/data/asm_ped_sim_data.csv"
if (!params$isonline)
  s_ex10_p02_data_path <- file.path(here::here(), "docs", "data", "asm_ped_sim_data.csv")

sigma_u2 <- 9
sigma_s2 <- sigma_u2 / 4
sigma_e2 <- 36

Use the same dataset as in Problem 1 to predict breeding values, but use an animal model instead of a sire model. The dataset is available from

cat(s_ex10_p02_data_path, "\n")

Hints

Your Solution

Problem 3: Model Comparison

Compare the order of the predicted breeding values for the sires from the sire model and from the animal model.

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.