-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats_ws_setup.Rmd
29 lines (23 loc) · 1.17 KB
/
stats_ws_setup.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
title: "Statistical models in R"
subtitle: "Workshop setup instructions"
---
- Make sure that you have installed the [latest versions of R and RStudio](r_and_rstudio.html).
- In RStudio, install the [educer package](https://educe-ubc.github.io/educer.html). This will install all of the tidyverse packages and other resources.
- Install all other packages we will use during the workshop by copying the following code into the Console, after the prompt `>`
```{r install-packages, eval = FALSE}
# Data manipulation and visualization
if (!require(tidyverse)) install.packages("tidyverse")
# Data sets
if (!require(faraway)) install.packages("faraway")
if (!require(gapminder)) install.packages("gapminder")
if (!require(datasets)) install.packages("datasets")
if (!require(HSAUR3)) install.packages("HSAUR3")
# Mixed-effects and generalized linear models
if (!require(MASS)) install.packages("MASS")
if (!require(lme4)) install.packages("lme4")
# ANOVA for model objects
if (!require(car)) install.packages("car")
# Compare predicted values across groups
if (!require(lsmeans)) install.packages("lsmeans")
```