powered by
make the correlation matrix from the data.frame used in regression
cor.table( data, data_to_combine = NULL, var_name_select = NULL, all.var.names = NULL, d = 2 )
a data.frame used in regression model, e.g. model$model
another data.frame used for regression model, e.g. when you have similar set of X's but different Y's
optional: to specify the variable names used in regression to be included in the correlation matrix
optional: to rename all variable names, a string vector
number of decimal places to retain
# NOT RUN { data(mtcars) model <- lm(mpg ~ vs + carb + hp + wt + wt * hp , data = mtcars) cor.table(data = model$model) # }
Run the code above in your browser using DataLab