knitr::opts_chunk$set(echo = TRUE)
The following dataset on body weight and on futher observations on a number of animals is given.
s_ex01_p01_path <- "https://charlotte-ngs.github.io/asmss2022/data/asm_bw_mult_reg.csv" tbl_ex01_p01_data <- readr::read_csv(file = s_ex01_p01_path) knitr::kable(tbl_ex01_p01_data, booktabs = TRUE, longtable = TRUE, escape = FALSE)
The data can be read from r s_ex01_p01_path
. The additional columns contain data on body condition score (BCS) and height (HEI).
Use the same dataset as in Problem 1 and verify your results using the function lm()
in R.
lm()
function which takes a formula to define the model and a dataframesummary()
on the result of lm()
to show the resultscat('\n---\n\n _Latest Changes: ', format(Sys.time(), '%Y-%m-%d %H:%M:%S'), ' (', Sys.info()['user'], ')_\n', sep = '')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.