corr.Qmatrix | R Documentation |
Calculates Q matrix correlations from structure files in the folder specified in the filepath option
corr.Qmatrix(filepath = "./", instruct = FALSE, rowncol = TRUE, avmax = TRUE, pvalue = FALSE, raw = TRUE, r = 0.99, p = 0.05)
filepath |
a character string listing the folder's path from the current directory |
instruct |
when TRUE, data is in INSTRUCT format, else data is in STRUCTURE format |
rowncol |
when TRUE, calculates and returns filtered Q matrix correlations using the rows-and-columns criterion |
avmax |
when TRUE, calculates and returns filtered Q matrix correlations using the average maximum correlation criterion |
pvalue |
when TRUE, calculates and returns Q matrix correlations using permutation tests |
raw |
when TRUE, returns the raw unfiltered Q matrix correlations |
r |
the minimum r value to classify a correlation as significant |
p |
the maximum p value to classify a correlation as significant. Ignored unless pvalue = TRUE |
Returns a S4 object of class QmatrixFilt listing Q matrix correlation results for all STRUCTURE results files in the designated folder
Michael G. Campana <mcampana63@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.