フィルターのクリア

How to convert similarity ratings data into matrix?

3 ビュー (過去 30 日間)
Magdalena Kachlicka
Magdalena Kachlicka 2020 年 7 月 15 日
編集済み: Magdalena Kachlicka 2021 年 4 月 21 日
Dear all,
I've collected similarity data on the 7-point Likert scale for a range of items (e.g., A, B, C), where participants were rating all possible combinations of these items. The results have the following format:
A, A, 7
A, B, 4
A, C, 2
B, A, 3
B, B, 7
B, C, 5
C, A, 2
C, B, 6
C, C, 7
As you can see, rating of items in reverse order (e.g., AB and BA) is not always the same.
Is there a way I can transform the data table (item1, item2, rating) into similarity matrix (like the one below)?
A, B, C
A, 7, 4, 2
B, 3, 7, 5
C, 2, 6, 7
  3 件のコメント
Dinesh Yadav
Dinesh Yadav 2020 年 7 月 21 日
As parth mentioned can you tell how you have stored data and in which format? It would be easier to answer you question that way.
Magdalena Kachlicka
Magdalena Kachlicka 2021 年 4 月 21 日
編集済み: Magdalena Kachlicka 2021 年 4 月 21 日
Somehow I completely missed these responses, sorry! I'm not quite sure what you mean by the data format? The data is a simple table of values from 1-8, as indicated above (also see the attached file for example). In the end, I've used the R function called cast() to do this, but I wonder if there is anything working in a similar way for Matlab too?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by