Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
4 changes: 0 additions & 4 deletions R/z-score-weight-for-lenhei.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down