Returns the Taba robust linear correlation or Taba rank (monotonic) correlation between two numeric vectors.
taba(x, y, method = c("taba", "tabarank"), omega = 0.45)
A numeric vector of length greater than 2 must be same length as y
A numeric vector of length greater than 2 must be same length as x
A character string of "taba"
or "tabarank"
determining
if one wants to calculate Taba linear or Taba rank (monotonic) correlation,
respectively. If no method is specified, the function will output Taba
linear correlation.
Numeric allowing the user to alter the tuning constant. If one is not specified, the function will default to 0.45. Range is between 0 and 1.
This function returns a the robust linear or monotonic association between two numeric vectors as a numeric.
This function can be used to compare two non-empty numeric vectors of
length greater than two, or two columns of a data frame or matrix composed
of more than two numeric elements. Missing values in either x or y are
deleted row-wise. The default method is Taba Linear correlation, with the
tuning constant omega
equal to 0.45.
The paper is under review for possible publication.
taba.test
for testing Taba linear or Taba rank (monotonic) correlations
taba.partial
for partial and semipartial correlations
taba.gpartial
for generalized partial correlations
taba.matrix
for calculating correlation, p-value, and distance matricies
# NOT RUN {
x = rnorm(100)
y = rnorm(100)
taba(x, y)
taba(x, y, method = "tabarank", omega = 0.4)
# }
Run the code above in your browser using DataLab