cor.table: make the correlation matrix from the data.frame used in...

Description Usage Arguments Examples

View source: R/correlation.table.R

Description

make the correlation matrix from the data.frame used in regression

Usage

1
2
3
4
5
6
7
cor.table(
  data,
  data_to_combine = NULL,
  var_name_select = NULL,
  all.var.names = NULL,
  d = 2
)

Arguments

data

a data.frame used in regression model, e.g. model$model

data_to_combine

another data.frame used for regression model, e.g. when you have similar set of X's but different Y's

var_name_select

optional: to specify the variable names used in regression to be included in the correlation matrix

all.var.names

optional: to rename all variable names, a string vector

d

number of decimal places to retain

Examples

1
2
3
data(mtcars)
model <- lm(mpg ~ vs + carb + hp + wt + wt * hp , data = mtcars)
cor.table(data = model$model)

regrrr documentation built on Aug. 13, 2021, 5:07 p.m.