Skip to content

Commit

Permalink
Fix cutoff in pairs step
Browse files Browse the repository at this point in the history
  • Loading branch information
delosh653 committed Aug 14, 2023
1 parent eaa38ff commit bb6129d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/infants_clean.R
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ cleanbatch_infants <- function(data.df,
if (diff_tbc.sd > 4 & (diff_ctbc.sd > 4 | is.na(diff_ctbc.sd)) &
diff_agedays >=365.25){
df[max_ind, exclude := "Exclude-2-meas->1-year"]
} else if (diff_tbc.sd > 2.5 & (diff_ctbc.sd > 4 | is.na(diff_ctbc.sd)) &
} else if (diff_tbc.sd > 2.5 & (diff_ctbc.sd > 2.5 | is.na(diff_ctbc.sd)) &
diff_agedays < 365.25){
df[max_ind, exclude := "Exclude-2-meas-<1-year"]
}
Expand Down

0 comments on commit bb6129d

Please sign in to comment.