cor.table {regrrr} | R Documentation |
make the correlation matrix from the data.frame used in regression
Description
make the correlation matrix from the data.frame used in regression
Usage
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
data(mtcars)
model <- lm(mpg ~ vs + carb + hp + wt + wt * hp , data = mtcars)
cor.table(data = model$model)
[Package regrrr version 0.1.3 Index]