View source: R/fixef.eQTL.scan.R
generate.qr.permutation.index.matrix | R Documentation |
This function produces a matrix with columns that represent the permutations of the row index of the phenotype data. This allows the same permutations of individuals to be used across different phenotypes. This approach is only statistically valid when individuals are exchangeable.
generate.qr.permutation.index.matrix(
qr.scan.object = NULL,
n = NULL,
num.samples,
seed = 1
)
qr.scan.object |
DEFAULT: NULL. Output object from scan.qr(). If NULL, function expects the number of individuals being permutated. |
n |
DEFAULT: NULL. Alternative to qr.scan.object. If NULL, function expects a qr.scan object. |
num.samples |
The number of permutations of the index to create - ultimately the number of columns in the output matrix. |
seed |
DEFAULT: 1. Samplings of the index is a random process, thus a seed is necessary to produce the same results over multiple runs and different machines. |
generate.qr.permutation.index.matrix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.