powered by
Computes Pearson's correlation matrix with p-values
corr_coef(data, ..., verbose = TRUE)
The data set.
Variables to use in the correlation. If no variable is informed all the numeric variables from data are used.
data
Logical argument. If verbose = FALSE the code is run silently.
verbose = FALSE
A list with the correlation coefficients and p-values
# NOT RUN { library(metan) # All numeric variables all <- corr_coef(data_ge2) # Select variables sel <- corr_coef(data_ge2, EP, EL, CD, CL) print(sel) # } # NOT RUN { # }
Run the code above in your browser using DataLab