pairwise correlation matrix

Hello guys,

I want to create a pairwise correlation matrix, including continuous and categorical variables.

any idea how?

thanks in advance

If x is a matrix or dataframe of numeric values, then cor(x) is the correlation matrix. There are options to specify the method to other than the default pearson correlation coefficient.

x is a matrix of numerical variables and one categorical (Brand: BMW, Audi, Toyota etc).

Hi. I don't believe correlation makes sense between numerical variables and categorical variables.

Perhaps what you want is to do an Analysis of Variance to see if the means of the numerical variables are significantly different for each value of the categorical variable.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.