Error with missing value
cardiomoon opened this issue · 3 comments
cardiomoon commented
Thank you for nice package !
But dabest function result in ERROR when data[[y]] has missing value(s).
Best,
Keon-Woong Moon
josesho commented
Hi @cardiomoon ,
As noted in the readme, could you please provide a copy-pastable reproducible example with dummy data? This is to help diagnose to issue faster.
Thank,
Joses
cardiomoon commented
This is reproducible example
data(mtcars)
dabest(mtcars,am,mpg,idx=c("0","1")) %>% mean_diff() # No error
mtcars$mpg[1:10]=NA
dabest(mtcars,am,mpg,idx=c("0","1")) %>% mean_diff() # error
ZHANGROU-99 commented
Hi @cardiomoon ,
Thanks for your suggestion and the reproducible example. Yes, curret version of dabestr result in error when data has missing value. We will improve this in the next version. For now, please drop missing value before calling dabestr.
Best,
Zhang Rou