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

AverageWAgg cannot deal with missing values #32

Open
daaronr opened this issue Jan 30, 2023 · 1 comment
Open

AverageWAgg cannot deal with missing values #32

daaronr opened this issue Jan 30, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@daaronr
Copy link

daaronr commented Jan 30, 2023

data_ratings2 <- data_ratings
data_ratings2[4,6] <- NA_real_

data_ratings2 %>% 
AverageWAgg(expert_judgements = ., 
            type = "GeoMean")

Throws

Error in `preprocess_judgements()`:
! NAs Found in Values

Instead, I think it should just leave NAs out of the calculation. Can this be adjusted?

@Doi90
Copy link
Contributor

Doi90 commented Jan 31, 2023

I might be able to tweak preprocess_judgements() to leave the NAs for AverageWAgg. The NAs are problematic for the other *WAgg calculations though. I'll work on it.

@Doi90 Doi90 added the enhancement New feature or request label Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants