knitr::opts_chunk$set(echo = FALSE)
Body Weight
, BC
, ...) measured multiple times for the same animalif (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)
Animal
no longer just a counter, it becomes a model factortbl_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))
lm_rep_obs <- lm(`Body Weight` ~ `Breast Circumference`, data = tbl_rep_obs)
$$var(\mathbf{e}) = \mathbf{I} * \sigma_e^2$$ * Check residuals plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.