Skip to content
Prev 170056 / 398506 Next

Generating Correlation matrix

Dear R helpers,

I have generated a portfolio of Equity, Dollar Rate and say zero coupon bond. I have calculated the daily returns based on the prices available for last two years.
  
Now, I have three seperate csv files (Equity.csv, Dollar.csv and Bond.csv) containing the respective returns. I need to calculate the correlation matrix between the retuns of these assets. Please guide me how this can be done in R.

I have attached the three csv files.

Thanking in advance

With regards

Maithili