23 NNYFS Case Study
This is nothing worth looking at.
It’s just the start of something. I won’t get to this again until summer 2025. Sorry.
23.1 R setup for this chapter
Note
This section loads all needed R packages for this chapter. Appendix A lists all R packages and data sets used in the book, and also provides R session information. Appendix B describes the 431-Love.R script, and demonstrates its use.
23.2 Data should be NNYFS
Note
Appendix C provides further guidance on pulling data from other systems into R, while Appendix D gives more information (including download links) for all data sets used in this book.
nnyfs <- read_rds("data/nnyfs.Rds")
miss_var_summary(nnyfs)
# A tibble: 45 × 3
variable n_miss pct_miss
<chr> <int> <num>
1 educ_child 337 22.2
2 enjoy_recess 278 18.3
3 plank_time 134 8.83
4 calf_skinfold 128 8.43
5 income_pov 89 5.86
6 subscapular_skinfold 67 4.41
7 educ_adult 22 1.45
8 triceps_skinfold 21 1.38
9 salt_used 13 0.856
10 respondent 12 0.791
# ℹ 35 more rows