Skip to content

Commit

Permalink
add egfr, hba1c, and some other cc variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bcjaeger committed Feb 9, 2024
1 parent 7e9484e commit 4416809
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion data-raw/nhanes_recode.R
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,14 @@ nhanes_recode <- function(data = NULL){
"30 to <35",
"35+"
)
)
),

cc_acr = acr,
cc_egfr = egfr,
cc_hba1c = lbxgh,
cc_egfr_lt60 = if_else(cc_egfr < 60, "Yes", "No"),
cc_acr_gteq30 = if_else(cc_acr >= 30, "Yes", "No")

)

# finish recoding ----
Expand Down
7 changes: 7 additions & 0 deletions data-raw/nhanes_rename.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ nhanes_rename <- function(data){
cc_bmi = bmicat,
cc_diabetes = diabetes,
cc_ckd = ckd,

cc_acr,
cc_egfr,
cc_hba1c,
cc_egfr_lt60,
cc_acr_gteq30,

# cc_n_highrisk = highriskcond,

# cc_cvd, a sub-class of cc variables
Expand Down
Binary file modified data/nhanes_data.rda
Binary file not shown.

0 comments on commit 4416809

Please sign in to comment.