We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found a bug in the outliersUV() function in the NiPN data quality toolkit that can prevent calls such as:
svy[outliersUV(svy$muac), ]
from returning the correct set of records when there are NA values in the variable being tested.
I found this when using the toolkit with a dataset from MSF that had NA for all anthropometry when oedema was present. This may be a common case.
Here is an example of the problem using the example dataset in the NiPN toolkit:
svy <- read.table("rl.ex01.csv", header = TRUE, sep = ",") head(svy) ## Test function svy[outliersUV(svy$muac), ]
This gives:
Univariate outliers : Lower fence = 98, Upper fence = 178
Note that the values in the muac column are all outside of the fences. This is correct.
Adding a missing value:
## Add a missing value svy$muac[1] <- NA head(svy) ## Test function svy[outliersUV(svy$muac), ]
gives us:
The listed records do not contain outliers. This is wrong.
The text was updated successfully, but these errors were encountered:
fix issue #1
d545ecd
Merge pull request #2 from nutriverse/v0.1.1
f8c228c
ernestguevarra
No branches or pull requests
I found a bug in the outliersUV() function in the NiPN data quality toolkit that can prevent calls such as:
svy[outliersUV(svy$muac), ]
from returning the correct set of records when there are NA values in the variable being tested.
I found this when using the toolkit with a dataset from MSF that had NA for all anthropometry when oedema was present. This may be a common case.
Here is an example of the problem using the example dataset in the NiPN toolkit:
This gives:
Univariate outliers : Lower fence = 98, Upper fence = 178
Note that the values in the muac column are all outside of the fences. This is correct.
Adding a missing value:
gives us:
Univariate outliers : Lower fence = 98, Upper fence = 178
The listed records do not contain outliers. This is wrong.
The text was updated successfully, but these errors were encountered: