UBC Stat 406 Worksheets

These notes accompany the lectures for UBC’s Stat 406.
Author

Daniel J. McDonald and Matías Salibián-Barrera

Published

02 September 2023

Preface

This worksheet collection was originally created by Prof. Salibián-Barrera when he taught this course in 2019 and previous iterations. For the 2021 version, Prof. McDonald made some revisions and turned them into a book as a supplement to the course readings.

Installation

To run these, you need a number packages. To attempt to install them all at once, try:

if (!suppressWarnings(require(remotes, quietly = TRUE))) {
  install.packages("remotes")
}
tmp <- tempdir()
dp <- file.path(tmp, "DESCRIPTION")
download.file(
  "https://raw.githubusercontent.com/UBC-STAT/stat-406-worksheets/main/DESCRIPTION",
  dp
)
remotes::install_deps(tmp)
unlink(tmp)
rm(tmp, dp)
package version source
adabag 5.0 CRAN (R 4.3.0)
bookdown 0.35 CRAN (R 4.3.0)
bslib 0.5.1 CRAN (R 4.3.0)
class 7.3-22 CRAN (R 4.3.1)
cluster 2.1.4 CRAN (R 4.3.1)
countrycode 1.5.0 CRAN (R 4.3.0)
desc 1.4.2 CRAN (R 4.3.0)
downlit 0.4.3 CRAN (R 4.3.0)
ElemStatLearn 2015.6.26.2 Github (cran/ElemStatLearn@253e54016d004ac67879b594311651be3debbed4)
flexclust 1.4-1 CRAN (R 4.3.0)
formatR 1.14 CRAN (R 4.3.0)
ggcorrplot 0.1.4 CRAN (R 4.3.0)
ggplot2 3.4.3 CRAN (R 4.3.0)
glmnet 4.1-7 CRAN (R 4.3.0)
ISLR2 1.3-2 CRAN (R 4.2.0)
KernSmooth 2.23-22 CRAN (R 4.3.0)
knitr 1.43 CRAN (R 4.3.0)
lars 1.3 CRAN (R 4.3.0)
leaps 3.1 CRAN (R 4.3.0)
MASS 7.3-60 CRAN (R 4.3.1)
mclust 6.0.0 CRAN (R 4.3.0)
mvtnorm 1.2-2 CRAN (R 4.3.0)
nnet 7.3-19 CRAN (R 4.3.1)
randomForest 4.7-1.1 CRAN (R 4.3.0)
rmarkdown 2.24 CRAN (R 4.3.0)
robustbase 0.99-0 CRAN (R 4.3.0)
rpart 4.1.19 CRAN (R 4.3.1)
rworldmap 1.3-6 CRAN (R 4.3.0)
scales 1.2.1 CRAN (R 4.3.0)
SemiPar 1.0-4.2 CRAN (R 4.3.0)
sessioninfo 1.2.2 CRAN (R 4.3.0)
tibble 3.2.1 CRAN (R 4.3.0)
tidyverse 2.0.0 CRAN (R 4.3.0)
tree 1.0-43 CRAN (R 4.3.0)

These notes are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. See the human-readable version here and the real thing here.

Creative Commons Licence