Learn R Programming

metan (version 1.17.0)

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)

Value

A list with the correlation coefficients and p-values

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.

Author

Tiago Olivoto tiagoolivoto@gmail.com

Examples

Run this code
# \donttest{
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