Skip to content

Commit

Permalink
#32 very minor updates to make messaging look tidier on console and t…
Browse files Browse the repository at this point in the history
…o remove unnecessary variables
  • Loading branch information
rossfarrugia committed Jun 21, 2024
1 parent 034992e commit c1a54ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inst/templates/ad_advs.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ library(stringr)

# Load WHO and CDC metadata datasets ----
message("Please be aware that our default reference source in our metadata by Age is :
- for BMI, HEIGHT, and WEIGHT only: WHO for <2 yrs old children, and CDC for >=2 yrs old children.
- for BMI, HEIGHT, and WEIGHT only: WHO for <2 yrs old children, and CDC for >=2 yrs old children.
The user could replace these metadata with their own chosen metadata")

## BMI for age ----
Expand Down Expand Up @@ -300,6 +300,7 @@ advs_age <- advs %>%
PARAM = "BMI-for-age percentile"
)
) %>%
select(-Sigma, -P95) %>%
derive_params_growth_age(
sex = SEX,
age = AAGECUR,
Expand All @@ -319,8 +320,8 @@ advs_age <- advs %>%

## Derive Anthropometric indicators (Z-Scores/Percentiles-for-Height/Length) for Weight by Height/Length based on Standard Growth Charts ----
message("To derive height/length parameters, below function needs to call separately
for Height and Length based on the input data and current age of the patient,
as it depends on your CRF guidelines.")
for Height and Length based on the input data and current age of the patient,
as it depends on your CRF guidelines.")

### Use measure=LENGTH for patient current age < 2 years ----
advs_ht_lgth <- advs %>%
Expand Down

0 comments on commit c1a54ae

Please sign in to comment.