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

SUDA attribute level contributions when variable has NA as a level #296

Closed
undestu opened this issue May 18, 2020 · 1 comment
Closed

SUDA attribute level contributions when variable has NA as a level #296

undestu opened this issue May 18, 2020 · 1 comment
Assignees

Comments

@undestu
Copy link

undestu commented May 18, 2020

The suda2 function's output attribute_level_contribution does not seem to properly report a variable's attribute level risk when said variable has NA as a level. For eg:

df <- mtcars[, c("cyl", "am", "gear", "carb")]
df[1, "cyl"] <- NA
df_suda <- suda2(df, missing = NA)

df_suda$attribute_level_contributions

gives the result...

Untitled

... where all the level risks for variable cyl are unexpectedly NA.

Can this be fixed in future updates to sdcMicro please?

@bernhard-da
Copy link
Collaborator

hi @undestu thx for reporting. i pushed an update that should address the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants