Usage
bicor(x, y = NULL,
robustX = TRUE, robustY = TRUE,
use = "all.obs",
maxPOutliers = 1,
quick = 0,
pearsonFallback = "individual",
cosine = FALSE,
cosineX = cosine,
cosineY = cosine,
nThreads = 0,
verbose = 0, indent = 0)
Arguments
x
a vector or matrix-like numeric object
y
a vector or matrix-like numeric object
robustX
use robust calculation for x
?
robustY
use robust calculation for y
?
use
specifies handling of NA
s. One of (unique abbreviations of) "all.obs",
"pairwise.complete.obs".
maxPOutliers
specifies the maximum percentile of data that can be considered outliers on either
side of the median separately. For each side of the median, if
higher percentile than maxPOutliers
is considered an outlier by the weight function based on
quick
real number between 0 and 1 that controls the handling of missing data in the
calculation of correlations. See details.
pearsonFallback
Specifies whether the bicor calculation should revert to Pearson when median
absolute deviation (mad) is zero. Recongnized values are (abbreviations of)
"none", "individual", "all"
. If set to
"none"
, zero mad will result in <
cosine
logical: calculate cosine biweight midcorrelation?
Cosine bicorrelation is similar to standard bicorrelation but the median subtraction is not performed.
cosineX
logical: use the cosine calculation for x
? This setting does not affect y
and can be used to give a hybrid cosine-standard bicorrelation.
cosineY
logical: use the cosine calculation for y
? This setting does not affect x
and can be used to give a hybrid cosine-standard bicorrelation.
nThreads
non-negative integer specifying the number of parallel threads to be used by certain
parts of correlation calculations. This option only has an effect on systems on which a POSIX thread
library is available (which currently includes Linux and Mac OSX, b
verbose
if non-zero, the underlying C function will print some diagnostics.
indent
indentation for diagnostic messages. Zero means no indentation, each unit adds
two spaces.