-
Notifications
You must be signed in to change notification settings - Fork 0
/
hw-1-voting.qmd
87 lines (53 loc) · 954 Bytes
/
hw-1-voting.qmd
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
title: "HW 1 - In-person voting trends"
subtitle: "STA 210 - Spring 2022"
author: "Add your name here"
date: "Add the date here"
format: pdf
editor: visual
---
# Setup
Load packages and data:
```{r load-pkg-data}
#| message: false
# load packages
library(tidyverse)
library(tidymodels)
library(knitr)
library(scales)
# load data
election_nc <- read_csv("data/nc-election-2020.csv") %>%
mutate(fips = as.integer(FIPS))
county_map_data <- read_csv("data/nc-county-map-data.csv")
election_sample <- read_csv("data/us-election-2020-sample.csv")
```
# Exercises
## Part 1: Counties in North Carolina
### Exercise 1
```{r label-me}
# add code here...
```
Add answer here...
### Exercise 2
...
### Exercise 3
...
### Exercise 4
...
### Exercise 5
...
### Exercise 6
...
### Exercise 7
...
### Exercise 8
...
## Part 2: Inference for the U.S.
### Exercise 9
...
### Exercise 10
...
### Exercise 11
...
### Exercise 12
...