Extending Missing Values Options #9715
lilyclements
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Written in 2018 in #3711
A package I have come across which has some functions on dealing with missing data is
finalfit.It has some crossover in terms of functions as
naniarandvisdat.For example
vis_missinvisdatis equivalent tomissing_plotinfinalfit, just flipped on the co-ordinates. (Although I prefervis_missaesthetically and in its parameters. However,missing_plotcan be nice with factor labels)However there are some nice functions in
finalfitthat I haven't (yet) seen innaniarorvisdatso could be useful to consider.I'm running through
finalfitbriefly this afternoon so can let you know further if you are interested.I have a R file on some of
naniarandvisdattoo.So here's an example of something I have not found how to visualise in the
naniarorvisdatpackages (although may be possible!) to quickly look at missingnessUsing the
airqualitydata:airquality %>% mutate(Month = factor(Month)) %>% missing_pairs(c("Ozone", "Solar.R", "Wind", "Month"))bind_shadowfunction in thenaniarpackage.airquality %>% bind_shadow() %>% group_by(Solar.R_NA) %>% summarise_at(.vars = "Ozone", .funs = c("mean", "sd", "var", "min", "max"), na.rm = TRUE)Or, with Roger's Malawi rainfall data if we just consider the month, and years 2015 and 2016 we can quickly see that most missing values occur between September and December.
The other columns aren't really relevant. I also think the plot could look a lot nicer than this, however, as a start it's quite a nice way to look at missing data. Perhaps it's not useful or relevant for R-Instat, but, I thought I'd mention it just in case.
Beta Was this translation helpful? Give feedback.
All reactions