plot_missings: Plot missing values

Description Usage Arguments Examples

View source: R/plots.R

Description

This function plots missing values in the round robin matrix for visual inspection.

Usage

1
plot_missings(formule, data, show.ids=TRUE)

Arguments

formule

A formula specifying the variable names. Example usage: DV ~ perceiver.id*target.id | group.id (group.id only necessary in multi group data sets)

data

The data frame

show.ids

Should the id's of the persons be printed on the axes?

Examples

1
2
3
4
5
6
7
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))

TripleR documentation built on May 30, 2017, 4:19 a.m.