- The
Weight-for-length/height (zwfl)z-score indicator is now also computed for observations whereweightorlenheiis outside the plausible ranges. The plausible ranges were 0.9-58 forweightand 38-150 forlenhei.
- The resulting data frame of
anthro_zscoreshas a new columnc9mo_flagto indicate whether an incorrect measurement position was observed with children younger than 9 months.
- For inputs with
cluster/strata = NULLa faster method was added for this special case to computeanthro_prevalence. This method yields the same results within an observed tolerance of< 0.0001on test data.
- Fixed a bug during prevalence computation when a value used as a group
(like sex) contains
NAand at the same time all values in that group areNAas well. Previously this resulted in a hard stop of the computation, now the code gracefully handles it.
- Fixed the package documentation to adhere to CRAN guidelines.
- Improved prevalence computation code, it now consumes slightly less time and is better organized. In addition test-coverage and documentation is improved.
- Cluster/strata/sw values in
anthro_prevalencenow support an explicitNULLvalue to better control for (missing) cluster/strata/sw information. - New API functions are exported, mainly useful to use complicated portions of the logic in other packages, not meant for end-users.
nest = TRUEis now set for the survey designs inanthro_prevalence. See the documentation ofsurvey::svydesignfor more information.- Removed
headc,armc,triskinandsubskinfrom parameters ofanthro_prevalenceas they were not used for the final output. _pop/unwpopvalues in prevalence calculation are now 0 instead of NA if no values are present for that group.
- Previously, if one level in a group only has only one observation, all
stdevcolumns inanthro_prevalenceareNA. Now only the levels with one observations yieldNA, for the others thestdevis still computed.
- Handling of age information is improved and loss of information from converting from age in days to age in months or vice verse is reduced.
- Some code improvements.
- Fixed a bug where, observations where erroneously removed from prevalence
computation. This happens if age in months was supplied, then values
> 59.992months were considered> 1826days. Now anything above60.009months is considered> 1826days and thus excluded.
- Internal code improvements.
- Z-scores are now only computed for
age < 60 monthsinstead ofage <= 60 months. - Z-scores for wfl were previously also computed when
age >= 60 monthsand<= 1856 days.
- Age in days is now rounded half to even (e.g. 730.5 days = 731) before joining the data with the reference values. This is in line with previous implementations and in particularly relevant for data points with age exactly 24 months. Previously the example above was converted to 730 days and with this release it is converted to 731 days (#17).
- The cleaned
measureandsexvariables are now part of the output data.frame ofanthro_zscores(#20, #24). - Removed
covrfrom suggests dependencies. - Fixed a typo in the docs (#15).
- Initial release of the package.