All attendees are expected to come to the workshop with R, RStudio, and necessary R packages already installed!
Ensure you have the latest version of R installed on your computer. You should install R first, then RStudio (see below). We anticipate all participants are familiar with R.
At the top of the page, select the version of R corresponding to your operating system (Mac, Linux, Windows)
Follow directions for download and installation.
Go to the second step to download RStudio. If you have already installed R, you do not have to do it again.
Follow the instructions of the Installer.
Open RStudio to start R
Install synthpop. The synthpop package imports (but does not automatically load) several additional package: lattice, MASS, methods, nnet, ggplot2, graphics, stats, utils, rpart, party, foreign, plyr, proto, polspline, randomForest,ranger, classInt, mipfp, survival, stringr, rmutil, broman. Students do not need to install the imported packages by hand. They will be downloaded and installed when they install synthpop.
Install the following additional packages that are listed in blue. The ones in red have already been installed by synthpop. Make sure you have a good internet connection. You may need to install these one at a time.
caret
caretEnsemble
gam
gbm
gtsummary
dplyr
ISLR2
kableExtra
pacman
pdp
pROC
rattle
splines
tidyr
tidyverse
tidymodels
epi
bshazard
muhaz
ggsurvfit
lubridate
survminer
broom
flexsurv
randomForestSRC
readxl
tibbles
ggplot2
MASS
randomForest
rpart
survival
synthpop
We recommend the following textbooks as a companion to the workshop. Those who need some familiarity with R should consult Introduction to Data Science, Part I.
Introduction to Data Science, Part I
Data Wrangling and Visualization with R
Introduction to Data Science, Part II
Statistics and Prediction Algorithms