Skip to content

Commit

Permalink
Fix typo for BIVs
Browse files Browse the repository at this point in the history
  • Loading branch information
delosh653 committed Aug 21, 2023
1 parent 0522454 commit 62bc3cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/infants_clean.R
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ cleanbatch_infants <- function(data.df,
))

# add age in years
data.df[, ageyears := agedays *365.25]
data.df[, ageyears := agedays/365.25]

# calculate the valid step
valid_set <- valid(data.df, include.temporary.extraneous = TRUE) &
Expand Down
4 changes: 2 additions & 2 deletions R/infants_support.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ calc_oob_evil_twins <- function(df){
calc_and_recenter_z_scores <- function(df, cn, ref.data.path){
# for infants, use z and who
measurement.to.z <- read_anthro(ref.data.path, cdc.only = TRUE,
infants = T)
infants = TRUE)
measurement.to.z_who <- read_anthro(ref.data.path, cdc.only = FALSE,
infants = T)
infants = TRUE)

# calculate "standard deviation" scores
df[, cn.orig_cdc := measurement.to.z(param, agedays, sex, get(cn), TRUE)]
Expand Down

0 comments on commit 62bc3cd

Please sign in to comment.