From cab250a8930d392d1ce2e2a0977e6ec302e25389 Mon Sep 17 00:00:00 2001 From: Dirk Schumacher Date: Tue, 2 Dec 2025 11:20:48 +0100 Subject: [PATCH] Removes adjustment of weight/height for zwfl --- NEWS.md | 6 ++++++ R/z-score-weight-for-lenhei.R | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index 1315c8c..4f8fc54 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,11 @@ # anthro (development version) +## Method + +* The `Weight-for-length/height (zwfl)` z-score indicator is now also computed + for observations where `weight` or `lenhei` is outside the plausible ranges. + The plausible ranges were 0.9-58 for `weight` and 38-150 for `lenhei`. + ## Z-scores * The resulting data frame of `anthro_zscores` has a new column `c9mo_flag` diff --git a/R/z-score-weight-for-lenhei.R b/R/z-score-weight-for-lenhei.R index c547292..4d4324f 100644 --- a/R/z-score-weight-for-lenhei.R +++ b/R/z-score-weight-for-lenhei.R @@ -32,10 +32,6 @@ anthro_zscore_weight_for_lenhei <- # then we have everything to compute the zscores n <- length(lenhei) - # clean weight/lenhei - weight[weight < 0.9 | weight > 58.0] <- NA_real_ - lenhei[lenhei < 38.0 | lenhei > 150.0] <- NA_real_ - # we also need to interpolate lenhei under certain coniditions low_lenhei <- trunc(lenhei * 10) / 10 upp_lenhei <- trunc(lenhei * 10 + 1) / 10