library(Hmisc)
library(janitor)
library(naniar)
library(sessioninfo)
# if you wish to add other packages, do so here
library(tidyverse)
::opts_chunk$set(comment = NA) knitr
431 Project A Proposal Template
You will get more out of this template if you work with it in combination with the 431 Project A Sample Proposal, which provides more detail for each section of the Proposal.
See the Project A Examples for more details and useful links.
Be certain to delete this note when you submit your final proposal, along with my other instructions.
1 R Packages
Follow the instructions for this section found in the R Packages section of the Proposal page.
Leave in the code below, augmenting it with additional packages as necessary, where indicated.
2 Data Ingest
Follow the instructions for this section found in Data Task 1 on the Data page, as well as the Data Ingest section of the Proposal page.
A little bit of important code is included below.
<-
data_url "https://www.countyhealthrankings.org/sites/default/files/media/document/analytic_data2023_0.csv"
<- read_csv(data_url, skip = 1, guess_max = 4000,
chr_2023_raw show_col_types = FALSE)
3 State Selection
Follow the instructions for this section found in Data Task 2 on the Data page, as well as the State Selection section of the Proposal page.
4 Variable Selection
Follow the instructions for this section found in Data Task 3 on the Data page, as well as the Variable Selection section of the Proposal page.
5 Variable Cleaning and Renaming
Follow the instructions for this section found at the end of Data Task 3 on the Data page, as well as the Variable Cleaning and Renaming section of the Proposal page. .
6 Creating the Analysis 2 Predictor
Follow the instructions for this section found in Data Task 4 on the Data page, as well as the Creating the Analysis 2 Predictor section of the Proposal page. .
7 Adding 2018 Data for the Analysis 3 Outcome
Follow the instructions for this section found in Data Task 5 on the Data page, as well as the Adding 2018 Data for the Analysis 3 Outcome section of the Proposal page.
8 Arranging and Saving the Analytic Tibble
Follow the instructions for this section found in Data Task 6 on the Data page, as well as the Arranging and Saving the Analytic Tibble section of the Proposal page.
9 Print the Tibble
Follow the relevant instructions for this section found on the Proposal page.
10 Numerical Summaries
Follow the relevant instructions for this section found on the Proposal page.
11 The Codebook
Follow the relevant instructions for this section found on the Proposal page.
Our add name of tibble tibble contains add code counties and add code variables.
Variable | Original | Role | NA | Distinct | Definition |
---|---|---|---|---|---|
fipscode | – | ID | add code | add code | county’s FIPS code |
state | – | ID | add code | add code | state postal abbreviation |
county | – | ID | add code | add code | county name |
add other selected variables | - | - | - | - | - |
county_ranked | – | Check | add code | add code | be sure that all values are 1 |
Missingness Check goes here.
Distinct Values Check goes here.
12 Research Questions
Follow the relevant instructions for this section, and its subsections, found on the Proposal page.
12.1 Analysis 1 Research Question
12.2 Analysis 2 Research Question
12.3 Analysis 3 Research Question
13 Proposal Reflection
Here you will provide a paragraph describing the most challenging (or difficult) part of completing the work so far, and how you were able to overcome whatever it was that was most challenging.
Your discussion of the biggest challenge includes a paragraph (or more) written in English, with attention paid to grammar, syntax and spelling. It needs to be clear to us from reading your reflection what your biggest issue was, and how you tried to address it.
14 Session Information
session_info()
─ Session info ───────────────────────────────────────────────────────────────
setting value
version R version 4.3.1 (2023-06-16 ucrt)
os Windows 11 x64 (build 22621)
system x86_64, mingw32
ui RTerm
language (EN)
collate English_United States.utf8
ctype English_United States.utf8
tz America/New_York
date 2023-09-28
pandoc 3.1.1 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
─ Packages ───────────────────────────────────────────────────────────────────
package * version date (UTC) lib source
backports 1.4.1 2021-12-13 [1] CRAN (R 4.3.0)
base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.3.0)
bit 4.0.5 2022-11-15 [1] CRAN (R 4.3.1)
bit64 4.0.5 2020-08-30 [1] CRAN (R 4.3.1)
checkmate 2.2.0 2023-04-27 [1] CRAN (R 4.3.1)
cli 3.6.1 2023-03-23 [1] CRAN (R 4.3.1)
cluster 2.1.4 2022-08-22 [2] CRAN (R 4.3.1)
colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.3.1)
crayon 1.5.2 2022-09-29 [1] CRAN (R 4.3.1)
curl 5.0.2 2023-08-14 [1] CRAN (R 4.3.1)
data.table 1.14.8 2023-02-17 [1] CRAN (R 4.3.1)
digest 0.6.33 2023-07-07 [1] CRAN (R 4.3.1)
dplyr * 1.1.2 2023-04-20 [1] CRAN (R 4.3.1)
evaluate 0.21 2023-05-05 [1] CRAN (R 4.3.1)
fansi 1.0.4 2023-01-22 [1] CRAN (R 4.3.1)
fastmap 1.1.1 2023-02-24 [1] CRAN (R 4.3.1)
forcats * 1.0.0 2023-01-29 [1] CRAN (R 4.3.1)
foreign 0.8-84 2022-12-06 [2] CRAN (R 4.3.1)
Formula 1.2-5 2023-02-24 [1] CRAN (R 4.3.0)
generics 0.1.3 2022-07-05 [1] CRAN (R 4.3.1)
ggplot2 * 3.4.3 2023-08-14 [1] CRAN (R 4.3.1)
glue 1.6.2 2022-02-24 [1] CRAN (R 4.3.1)
gridExtra 2.3 2017-09-09 [1] CRAN (R 4.3.1)
gtable 0.3.4 2023-08-21 [1] CRAN (R 4.3.1)
Hmisc * 5.1-0 2023-05-08 [1] CRAN (R 4.3.1)
hms 1.1.3 2023-03-21 [1] CRAN (R 4.3.1)
htmlTable 2.4.1 2022-07-07 [1] CRAN (R 4.3.1)
htmltools 0.5.6 2023-08-10 [1] CRAN (R 4.3.1)
htmlwidgets 1.6.2 2023-03-17 [1] CRAN (R 4.3.1)
janitor * 2.2.0 2023-02-02 [1] CRAN (R 4.3.1)
jsonlite 1.8.7 2023-06-29 [1] CRAN (R 4.3.1)
knitr 1.44 2023-09-11 [1] CRAN (R 4.3.1)
lifecycle 1.0.3 2022-10-07 [1] CRAN (R 4.3.1)
lubridate * 1.9.2 2023-02-10 [1] CRAN (R 4.3.1)
magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.3.1)
munsell 0.5.0 2018-06-12 [1] CRAN (R 4.3.1)
naniar * 1.0.0 2023-02-02 [1] CRAN (R 4.3.1)
nnet 7.3-19 2023-05-03 [2] CRAN (R 4.3.1)
pillar 1.9.0 2023-03-22 [1] CRAN (R 4.3.1)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.3.1)
purrr * 1.0.2 2023-08-10 [1] CRAN (R 4.3.1)
R6 2.5.1 2021-08-19 [1] CRAN (R 4.3.1)
readr * 2.1.4 2023-02-10 [1] CRAN (R 4.3.1)
rlang 1.1.1 2023-04-28 [1] CRAN (R 4.3.1)
rmarkdown 2.25 2023-09-18 [1] CRAN (R 4.3.1)
rpart 4.1.19 2022-10-21 [2] CRAN (R 4.3.1)
rstudioapi 0.15.0 2023-07-07 [1] CRAN (R 4.3.1)
scales 1.2.1 2022-08-20 [1] CRAN (R 4.3.1)
sessioninfo * 1.2.2 2021-12-06 [1] CRAN (R 4.3.1)
snakecase 0.11.1 2023-08-27 [1] CRAN (R 4.3.1)
stringi 1.7.12 2023-01-11 [1] CRAN (R 4.3.0)
stringr * 1.5.0 2022-12-02 [1] CRAN (R 4.3.1)
tibble * 3.2.1 2023-03-20 [1] CRAN (R 4.3.1)
tidyr * 1.3.0 2023-01-24 [1] CRAN (R 4.3.1)
tidyselect 1.2.0 2022-10-10 [1] CRAN (R 4.3.1)
tidyverse * 2.0.0 2023-02-22 [1] CRAN (R 4.3.1)
timechange 0.2.0 2023-01-11 [1] CRAN (R 4.3.1)
tzdb 0.4.0 2023-05-12 [1] CRAN (R 4.3.1)
utf8 1.2.3 2023-01-31 [1] CRAN (R 4.3.1)
vctrs 0.6.3 2023-06-14 [1] CRAN (R 4.3.1)
visdat 0.6.0 2023-02-02 [1] CRAN (R 4.3.1)
vroom 1.6.3 2023-04-28 [1] CRAN (R 4.3.1)
withr 2.5.1 2023-09-26 [1] CRAN (R 4.3.1)
xfun 0.40 2023-08-09 [1] CRAN (R 4.3.1)
yaml 2.3.7 2023-01-23 [1] CRAN (R 4.3.0)
[1] C:/Users/thoma/AppData/Local/R/win-library/4.3
[2] C:/Program Files/R/R-4.3.1/library
──────────────────────────────────────────────────────────────────────────────