|
7 | 7 | #' descriptions of these plots.
|
8 | 8 | #' In the lineup protocol the plot of the real data is embedded amongst a field of
|
9 | 9 | #' plots of data generated to be consistent with some null hypothesis.
|
10 |
| -#' If the observe can pick the real data as different from the others, this |
| 10 | +#' If the observer can pick the real data as different from the others, this |
11 | 11 | #' lends weight to the statistical significance of the structure in the plot.
|
12 | 12 | #' The protocol is described in Buja et al. (2009).
|
13 | 13 | #'
|
|
25 | 25 | #' and high leverage, which are likely to have a strong influence on
|
26 | 26 | #' the model fit.
|
27 | 27 | #'
|
28 |
| -#' Generate n - 1 null datasets and randomly position the true data. If you |
29 |
| -#' pick the real data as being noticeably different, then you have formally |
30 |
| -#' established that it is different to with p-value 1/n. |
| 28 | +#' 19 null datasets are plotted together the the true data (randomly |
| 29 | +#' positioned). If you pick the real data as being noticeably different, then |
| 30 | +#' you have formally established that it is different to with p-value 0.05. |
| 31 | +#' Run the \code{decrypt} message printed in the R Console to see which |
| 32 | +#' plot represents the true data. |
31 | 33 | #'
|
32 | 34 | #' If the null hypothesis in the type 1 plot is violated, consider using
|
33 | 35 | #' a different model. If the null hypotheses in the type 2 or 3 plots
|
@@ -127,13 +129,16 @@ lineup_residuals <- function(model, type = 1, method = "rotate", color_points =
|
127 | 129 | #' \code{dist} argument.
|
128 | 130 | #' In the lineup protocol the plot of the real data is embedded amongst a field of
|
129 | 131 | #' plots of data generated to be consistent with some null hypothesis.
|
130 |
| -#' If the observe can pick the real data as different from the others, this |
| 132 | +#' If the observer can pick the real data as different from the others, this |
131 | 133 | #' lends weight to the statistical significance of the structure in the plot.
|
132 | 134 | #' The protocol is described in Buja et al. (2009).
|
133 | 135 | #'
|
134 |
| -#' @details #' Generate n - 1 null datasets and randomly position the true data. If you |
135 |
| -#' pick the real data as being noticeably different, then you have formally |
136 |
| -#' established that it is different to with p-value 1/n. |
| 136 | +#' @details 19 null datasets are plotted together the the true data (randomly |
| 137 | +#' positioned) If you pick the real data as being noticeably different, then |
| 138 | +#' you have formally established that it is different to with p-value 0.05. |
| 139 | +#' |
| 140 | +#' Run the \code{decrypt} message printed in the R Console to see which |
| 141 | +#' plot represents the true data. |
137 | 142 | #'
|
138 | 143 | #' @param data a data frame.
|
139 | 144 | #' @param variable the name of the variable that should be plotted.
|
@@ -209,13 +214,16 @@ lineup_histograms <- function(data, variable, dist = NULL, params = NULL, color_
|
209 | 214 | #' data follows the distribution specified by the \code{dist} argument.
|
210 | 215 | #' In the lineup protocol the plot of the real data is embedded amongst a field of
|
211 | 216 | #' plots of data generated to be consistent with some null hypothesis.
|
212 |
| -#' If the observe can pick the real data as different from the others, this |
| 217 | +#' If the observer can pick the real data as different from the others, this |
213 | 218 | #' lends weight to the statistical significance of the structure in the plot.
|
214 | 219 | #' The protocol is described in Buja et al. (2009).
|
215 | 220 | #'
|
216 |
| -#' @details Generate n - 1 null datasets and randomly position the true data. If you |
217 |
| -#' pick the real data as being noticeably different, then you have formally |
218 |
| -#' established that it is different to with p-value 1/n. |
| 221 | +#' @details 19 null datasets are plotted together the the true data (randomly |
| 222 | +#' positioned) If you pick the real data as being noticeably different, then |
| 223 | +#' you have formally established that it is different to with p-value 0.05. |
| 224 | +#' |
| 225 | +#' Run the \code{decrypt} message printed in the R Console to see which |
| 226 | +#' plot represents the true data. |
219 | 227 | #'
|
220 | 228 | #' @param data a data frame.
|
221 | 229 | #' @param variable the name of the variable that should be plotted.
|
|
0 commit comments