Description Usage Arguments Value
Stressed correlation
1 2 | cor_stress(x, y = NULL, period = period, abs = F, use = "everything",
method = c("pearson", "kendall", "spearman"), ...)
|
x |
a numeric vector, matrix or data frame. |
y |
NULL (default) or a vector, matrix or data frame with compatible dimensions to x. The default is equivalent to y = x (but more efficient). |
period |
numeric number of periods to use |
abs |
logical. Should absolute values be used |
use |
an optional character string giving a method for computing covariances in the presence of missing values. This must be (an abbreviation of) one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs" |
method |
a character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated. |
... |
Return the stressed correlation of x and y in the selected period if these are vectors. If x and y are matrices then the correlations between the columns of x and the columns of y are returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.