Description Usage Arguments Value Author(s) Examples
Performs correlations by pairs between two class of variables.
1 2 | correlation(tabela_y, tabela_x = NULL, method = "pearson", digits = 4,
verbose = FALSE, corsimples = FALSE, ...)
|
tabela_y |
data.frame, vector or matrix for y variables |
tabela_x |
data.frame, vector or matrix for x variables |
method |
correlation method required. See |
digits |
output length of numeric data |
verbose |
is TRUE shows information about the process |
corsimples |
if TRUE, returns simple correlation only |
... |
extra args, if needed. |
Results as a data.frame with correlation, R^2, adjusted R^2 for a lm model and PRESS statistics.
LOPES, J. E.
1 2 | correlation(mtcars[,1:3])
correlation(mtcars[,1:3], mtcars[,4:6])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.