corTestDf {multiUS} | R Documentation |
Compute correlations and test their statistical significance
Description
The function computes the whole correlation matrix and corresponding sample sizes and p
-values. Print method is also available.
Usage
corTestDf(X, method = "p", use = "everything", ...)
## S3 method for class 'corTestDf'
print(x, digits = c(3, 3), format = NULL, ...)
printCorTestDf(l, digits = c(3, 3), format = NULL, ...)
Arguments
X |
Data matrix with selected variables. |
method |
A type of correlation coefficient to be calculated, see function |
use |
In the case of missing values, which method should be used, see function |
... |
Other parameters to print.default (not needed). |
x |
Output of |
digits |
Vector of length two for the number of digits (the first element of a vector corresponds to the number of digits for correlation coefficients and the second element of a vector corresponds to the number of digits for |
format |
A vector of length two for the formatting of the output values. |
l |
Output of |
Author(s)
Ales Ziberna
See Also
cor.test
Examples
corTestDf(mtcars[, 3:5])
[Package multiUS version 1.2.3 Index]