Arguments
batch
List of vectors, one vector per batch in the data. Because each
element in the list corresponds to a batch, each element should be a
vector with a unique values repeated as many times as the number of
data point in the batch.
trait
List of vectors, one vector per batch in the data. Each element of
the list can be either a vector of quantitative traits or a vector
of 0 and 1 in a case/control framework
names
List of vectors, one vector per batch in the data containing names
for each data point, typically individual IDs.
signal
List, one vector per batch in the data.
ncomp
Integer, number of components one wants to fit to the data
association.strata
Optional, a factor vector containing the strata when using a stratified test of association.