Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-factor mw_wrangle_wfhz() account for children measured lying down/recumbent length #137

Open
tomaszaba opened this issue Dec 11, 2024 · 6 comments
Assignees
Labels
refactor code improvement/refactoring

Comments

@tomaszaba
Copy link
Collaborator

Sometimes recumbent height is taken on some children. A correction factor is applied in those cases. Need to refactor mw_wrangle_wfhz() function to that end.

@tomaszaba tomaszaba added the refactor code improvement/refactoring label Dec 11, 2024
@tomaszaba tomaszaba added this to the 3. Re-factor functions milestone Dec 11, 2024
@tomaszaba
Copy link
Collaborator Author

@ernestguevarra, on this issue, in ENA, one would only indicate "l" for length, to mean recumbent, for a child aged 24-59 who for some reason was not measured standing, as it should. This means that all other children whose expectation was not violated, are left blank. I was reading the {zscorer} and I could not grasp clearly how the standing argument work. How should the vector look like?

@ernestguevarra
Copy link
Member

@tomaszaba, the standing variable (if there is) should be coded as 1 for standing, 2 for supine and 3 for unknown. If no standing variable is provided, then all values for standing are set to unknown. if unknown, then the age rule comes into play and age will determine whether the measurement is a standing or supine.

@ernestguevarra
Copy link
Member

this is the same algorithm used by the anthro package by WHO (they copied this from us)

@ernestguevarra
Copy link
Member

you don't need to do anything different when you use zscorer. If you have data on whether standing or not, then use that but coded as above and it will take care of unknown. If there is no standing variable which is the default, then zscorer will deal with that.

@tomaszaba
Copy link
Collaborator Author

OK. Thanks. Let me find an ENA like dataset to show how they deal with this issue and then we see how we can address that in this issue. Will come back to this tomorrow.

@ernestguevarra
Copy link
Member

@tomaszaba, this is another package that we need to benchmark SMART ENA and zscorer against in terms of z-score calculations - https://github.com/ropensci/gigs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor code improvement/refactoring
Projects
None yet
Development

No branches or pull requests

2 participants