knitr::opts_chunk$set(echo = FALSE)

Repeated Measurements

if (params$isonline){
  s_rep_obs_path <- "https://charlotte-ngs.github.io/asmss2022/data/asm_bw_bc_rep_obs.csv"
} else {
  s_rep_obs_path <- file.path(here::here(), "docs", "data", "asm_bw_bc_rep_obs.csv")
}
tbl_rep_obs <- readr::read_csv(file = s_rep_obs_path)
knitr::kable(head(tbl_rep_obs, 8),
             booktabs = TRUE,
             longtable = TRUE)

Properties

Data Scatterplot

tbl_rep_obs$Animal <- as.factor(tbl_rep_obs$Animal)
ggplot2::ggplot(data = tbl_rep_obs, 
                mapping = ggplot2::aes(x = `Breast Circumference`,
                                       y = `Body Weight`)) + 
  ggplot2::geom_point(ggplot2::aes(color = Animal, 
                                   size = 3))

Statistical Analysis

lm_rep_obs <- lm(`Body Weight` ~ `Breast Circumference`, data = tbl_rep_obs)

$$var(\mathbf{e}) = \mathbf{I} * \sigma_e^2$$ * Check residuals plot

No Repeated Measures



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