I have 92 sets of data that are all of the same type.

I'd want to create a correlation matrix for any two feasible pairings.

I need a 92x92 matrix, for example.

such that element (ci,cj) is a relationship between ci and cj.

How can I go about doing that?
Jun 14, 2022 338 views

An example,

``` d <- data.frame(x1=rnorm(10),
x2=rnorm(10),
x3=rnorm(10))
cor(d) # get correlations (returns matrix)```

You could use 'corrplot' package.

```d <- data.frame(x1=rnorm(10),
x2=rnorm(10),
x3=rnorm(10))
M <- cor(d) # get correlations

library('corrplot') #package corrplot
corrplot(M, method = "circle") #plot matrix```
• 3,040 points

How can I avoid the transformation into an atomic vector in a matrix (r programming)

I'm scrambling to come up with a ...READ MORE

How can I delete multiple values from a vector in R?

The %in% operator tells  which elements are ...READ MORE

How can I select a CRAN mirror in R ?

There are many ways of doing so ...READ MORE

Modular programming in R language

R provides support to create subscripts. For ex. ...READ MORE

Plotting logistic regression in R with the Smarket dataset

The first, third, and fourth methods of ...READ MORE

R Generalized Method Of Moments Regression Estimation With Instruments

After a variety of approaches, it was ...READ MORE

How to generate correlation plot of my data.frame in R?

I have a df and I want ...READ MORE

How can I make a list of lists in R?

Lists of lists are simple to create. list1 ...READ MORE

How to rename a single column in a data.frame?

data.rename(columns={'gdp':'log(gdp)'}, inplace=True) The rename show that it accepts a dict ...READ MORE