- Read the excel file
- Read the columns as column vectors, say col1,col2 etc
- Here, next
how to generate correlation matrix with panel data?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have an excel data similar to:
year company Ratio1 Ratio2 Ratio3 ...
1 x a b c
2 x d e f
1 y g h j
2 y t u p
1 z ...
2 z ...
and I want to generate a correlation matrix between the ratios. But I dont know how to do it with the my dataset.
I would be glad if you can help me about this.
thank you for your answers in advance,
0 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2019 年 10 月 31 日
編集済み: KALYAN ACHARJYA
2019 年 10 月 31 日
result=corrcoef(col1); % so on
If pairwise
result=corrcoef(col1,col2);
More detail here
3 件のコメント
KALYAN ACHARJYA
2019 年 10 月 31 日
I have no idea about the datasets, but you apply apply the same in section of the column vector right? .
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!