Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, September 9, 2019

Codecademy Hypothesis Testing With R ANOVA 12/14


#Sample Solution
---
title: "Hypothesis Testing in R"
output: html_notebook
---

```{r message = FALSE}
# load libraries
library(tidyr)
```

```{r message = FALSE}
# load data
load("stores.Rda")
load("stores_new.Rda")
```

```{r}
# inspect stores here:
stores
```

```{r}
# perform anova on stores here:
results = aov(sales ~ store, data = stores)
summary(results)
```

```{r}
# perform anova on stores_new here:
results_new = aov(sales ~ store, data = stores_new)
summary(results_new)
```

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts