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

Weight-for-height curve not sorted in age #24

Closed
stefvanbuuren opened this issue Mar 15, 2024 · 0 comments
Closed

Weight-for-height curve not sorted in age #24

stefvanbuuren opened this issue Mar 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@stefvanbuuren
Copy link
Member

Before plotting, JAMES sorts the observations on the x-variable. When the x-variable is age, the plotted curve will be automatically sorted in age, as expected.

However, the order of the x-variable in the weight-for-height plot may differ from the age order. This occurs when the child is measured to be shorter than previously. In that case, the lines that connect the dots suggest a wrong age order.

Weight-for-height data should not be sorted on height, but on age.

@stefvanbuuren stefvanbuuren added the bug Something isn't working label Mar 15, 2024
stefvanbuuren added a commit to growthcharts/chartplotter that referenced this issue Mar 16, 2024
…a later age is lower. See

growthcharts/james#24. It works for curve_interpolation is FALSE. Some approximation error remain for curve_interpolation is TRUE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant