vz-risk / verisr

R package for working with VERIS data
21 stars 11 forks source link

Under some instances, `infer` package causes error in getenumCI2022 #26

Closed gdbassett closed 1 year ago

gdbassett commented 2 years ago
vz %>%
     filter(plus.dbir_year==2022, subset.2022dbir) %>%
     filter(attribute.confidentiality.data_disclosure.Yes) %>% 
     filter(action.malware.variety.Ransomware) %>%
     verisr::getenumCI2022("action.malware.variety", ci.method="bootstrap") 

causes error:

Error: A proportion is not well-defined for a multinomial categorical response variable (result) and no explanatory variable.
In addition: Warning message:
You have given `type = "bootstrap"`, but `type` is expected to be `"draw"`. This workflow is untested and the results may not mean what you think they mean. 
gdbassett commented 2 years ago

This may be when a column is all 'true'

gdbassett commented 2 years ago

This is a bug in infer. See https://github.com/tidymodels/infer/issues/443

gdbassett commented 1 year ago

mitigated but not fixed in getenumCI2022 and 2023.