cormat: Simplified Correlation Matrix

Description Usage Arguments Value Examples

View source: R/cormat.R

Description

This function creates a correlation (cormat) on a data frame of the variables in an equation.

Usage

1

Arguments

df

data frame to read in.

formula

the variables in the regression model, Y = X_1 + X_2 + ... + X_m, written as Y ~ X1 + X2...

Value

This function returns a correlation matrix for the variables provided in the formula.

Examples

1
2
3
data <- mtcars

cormat(data, mpg ~ wt + am)

burrelvannjr/vannstats documentation built on April 30, 2021, 2:01 p.m.