Skip to content

Commit

Permalink
order of operations?
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz2101 committed Aug 6, 2024
1 parent 5ba53fd commit 72e38dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/derive_params_growth_age.R
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ derive_params_growth_age <- function(dataset,
)
}

add_pctl <- add_pctl %>% mutate(AVAL = pnorm(temp_z) * 100)

if (bmi_cdc_correction) {
add_pctl <- add_pctl %>%
mutate(
Expand All @@ -342,9 +344,6 @@ derive_params_growth_age <- function(dataset,
AVAL = ifelse(AVAL == Inf, 8.21, AVAL)
) %>%
select(-c(P95, Sigma))
} else {
add_pctl <- add_pctl %>%
mutate(AVAL = pnorm(temp_z) * 100)
}

dataset_final <- bind_rows(dataset_final, add_pctl) %>%
Expand Down

0 comments on commit 72e38dd

Please sign in to comment.