paired_observed_plot | R Documentation |
This function will create two plots of a quantitative variable and its differences for matched pairs data.
paired_observed_plot(data, which_first = 1)
data |
Two- or three-column data frame with values for each group in last two columns. |
which_first |
Which column is first in order of subtraction?
|
Returns plot of distribution of observed values, with means & standard deviations in groups and paired observations linked by a line segment, and histogram of differences.
set.seed(117) x <- rnorm(25) y <- x + 1 + rnorm(25, 0, 1.8) data <- data.frame(x, y) paired_observed_plot(data, which_first = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.