corTestDf: 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 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 cor.
use
In the case of missing values, which method should be used, see function cor.
...
Other parameters to print.default (not needed).
x
Output of corTestDf function.
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 \(p\)-values).
format
A vector of length two for the formatting of the output values.