The lineup protocol.
Description
In this protocol the plot of the real data is embedded amongst a field of plots of data generated to be consistent with some null hypothesis. If the observe can pick the real data as different from the others, this lends weight to the statistical significance of the structure in the plot. The protocol is described in Buja, Cook, Hofmann, Lawrence, Lee, Swayne, Wickham (2009) Statistical inference for exploratory data analysis and model diagnostics, Phil. Trans. R. Soc. A, 367, 43614383.
Usage
1 
Arguments
method 
method for generating null data sets 
true 
true data set. If 
n 
total number of samples to generate (including true data) 
pos 
position of true data. Leave missing to pick position at
random. Encryped position will be printed on the command line,

samples 
samples generated under the null hypothesis. Only specify this if you don't want lineup to generate the data for you. 
Details
Generate n  1 null datasets and randomly position the true data. If you pick the real data as being noticeably different, then you have formally established that it is different to with pvalue 1/n.
Examples
1 2 3 4 5 6 7 
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.