plot_missings {TripleR} | R Documentation |
This function plots missing values in the round robin matrix for visual inspection.
plot_missings(formule, data, show.ids=TRUE)
formule |
A formula specifying the variable names. Example usage: |
data |
The data frame |
show.ids |
Should the id's of the persons be printed on the axes? |
data(multiGroup)
m2 <- multiGroup
m2$ex[m2$perceiver.id==90201] <- NA
m2$ex[m2$perceiver.id>92001] <- NA
m2$ex[sample(nrow(m2), 1000)] <- NA
plot_missings(ex~perceiver.id*target.id|group.id, data=m2)
(RR1m <- RR(ex~perceiver.id*target.id|group.id, data=m2, na.rm=TRUE))