Skip to content

Commit

Permalink
Remove edge calculations for HC in step 17
Browse files Browse the repository at this point in the history
  • Loading branch information
delosh653 committed Aug 14, 2023
1 parent 1d4082e commit eaa38ff
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions R/infants_clean.R
Original file line number Diff line number Diff line change
Expand Up @@ -1436,12 +1436,6 @@ cleanbatch_infants <- function(data.df,
df[d_agedays >= 107 & d_agedays < 153, whoinc.age.hc := 4]
df[d_agedays >= 153 & d_agedays < 199, whoinc.age.hc := 6]

# update the edge intervals
df[d_agedays < 46, d_agedays := 45]
df[d_agedays == 45, whoinc.age.hc := 2]
df[d_agedays > 199, d_agedays := 200]
df[d_agedays == 200, whoinc.age.hc := 6]

# 17K
# merge with WHO
# add the column name we want to grab
Expand Down Expand Up @@ -1558,8 +1552,6 @@ cleanbatch_infants <- function(data.df,
idx <- df$index[which.max(df[df$val_excl != "Include",
absval])]



exclude_all[ind_all == idx] <- df[index == idx, val_excl]

#set up to continue on
Expand Down

0 comments on commit eaa38ff

Please sign in to comment.