corr.Qmatrix {corrsieve} | R Documentation |
Corr.Qmatrix
Description
Calculates Q matrix correlations from structure files in the folder specified in the filepath option
Usage
corr.Qmatrix(filepath = "./", instruct = FALSE, rowncol = TRUE,
avmax = TRUE, pvalue = FALSE, raw = TRUE, r = 0.99, p = 0.05)
Arguments
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 |
Value
Returns a S4 object of class QmatrixFilt listing Q matrix correlation results for all STRUCTURE results files in the designated folder
Author(s)
Michael G. Campana <mcampana63@gmail.com>