| x | y |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 0 | |
| 5 | 5 |
Nate Silver, what have you wrought?
Let’s see what replacing a zero with a blank does.
1. Create a dataset
Note: When you read the data in R, blanks will be replaced by NA.
2. Get summary statistics
| Variable | min | median | mean | max | sd | var | n |
|---|---|---|---|---|---|---|---|
| x | 1 | 2.5 | 2.75 | 5 | 1.71 | 2.92 | 5 |
| y | 0 | 2.0 | 2.20 | 5 | 1.92 | 3.70 | 5 |