mat_corr: Correlation exploration using vectors or data frames

View source: R/mat_corr.R

mat_corrR Documentation

Correlation exploration using vectors or data frames

Description

mat_corr generate matrix table of significant variables

Usage

mat_corr(y, df, showSig = F, sig.level = 0.05)

Arguments

y

is a response variable for exploring its relationship with the other predictor variables

df

data frame or a matrix with predictor variables

showSig

returns names of the significant variables at the specifies significant level

sig.level

specifies the significant level for deciding a significant relation between variables default is 0.05.

Details

This function explores the correlation of a variables with multiple dependent variables. It takes on an array or a data frame. if a vector is passed to the function it will be converted into a data frame Check if all the variables are numeric and not strings

Value

A data frame of correlation, p-values and their t-values


MAGALA-RICHARD/cormat documentation built on July 8, 2022, 12:14 p.m.