Open
Description
library(simputation)
library(narnia)
library(tidyverse)
# impute Ozone
So I can use the shadow matrix and then impute values and keep track of them, which is really nifty!
aq_shadow <- bind_shadow(airquality)
# impute the values and visualise
impute_lm(Ozone ~ Temp + Wind,
dat = aq_shadow) %>%
ggplot(aes(x = Temp,
y = Ozone,
colour = Ozone_NA)) +
geom_point()
But if I impute more than one variable, and I want to visualise both imputations, I cannot make the imputations visible on the one graphic
aq_shadow %>%
impute_lm(Ozone ~ Temp + Wind) %>%
impute_lm(Solar.R ~ Temp + Wind) %>%
ggplot(aes(x = Solar.R,
y = Ozone,
colour = Ozone_NA)) +
geom_point()
I would need to make two graphics. Or think of a way to incorporate this extra information.