metan (version 1.2.1)

corr_coef: Computes Pearson's correlation matrix with p-values

Description

Computes Pearson's correlation matrix with p-values

Usage

corr_coef(data, ..., verbose = TRUE)

Arguments

data

The data set.

...

Variables to use in the correlation. If no variable is informed all the numeric variables from data are used.

verbose

Logical argument. If verbose = FALSE the code is run silently.

Value

A list with the correlation coefficients and p-values

Examples

Run this code
# 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)

# }

Run the code above in your browser using DataLab