anova statistics

1 回表示 (過去 30 日間)
병욱
병욱 2024 年 7 月 23 日
コメント済み: 병욱 2024 年 7 月 25 日
% anova2
[pJtASTAnova2(1,:), ~] = anova2( [SumAbsJtCbnMeanAST(:,2:5,5)-SumAbsJtCbnMeanAST(:,1,5); SumAbsJtCbnMeanAST(:,2:5,1)-SumAbsJtCbnMeanAST(:,1,1)], 11, "off" );
[pJtASTAnova2(2,:), ~] = anova2( [SumAbsJtMtpMeanAST(:,2:5,5)-SumAbsJtMtpMeanAST(:,1,5); SumAbsJtMtpMeanAST(:,2:5,1)-SumAbsJtMtpMeanAST(:,1,1)], 11, "off" );
[pJtASTAnova2(3,:), ~] = anova2( [SumAbsJtAnkMeanAST(:,2:5,5)-SumAbsJtAnkMeanAST(:,1,5); SumAbsJtAnkMeanAST(:,2:5,1)-SumAbsJtAnkMeanAST(:,1,1)], 11, "off" );
[pJtASTAnova2(4,:), ~] = anova2( [SumAbsJtKneMeanAST(:,2:5,5)-SumAbsJtKneMeanAST(:,1,5); SumAbsJtKneMeanAST(:,2:5,1)-SumAbsJtKneMeanAST(:,1,1)], 11, "off" );
[pJtASTAnova2(5,:), ~] = anova2( [SumAbsJtHipMeanAST(:,2:5,5)-SumAbsJtHipMeanAST(:,1,5); SumAbsJtHipMeanAST(:,2:5,1)-SumAbsJtHipMeanAST(:,1,1)], 11, "off" );
I would like to run this code, so I would appreciate it if you could let me know how.

採用された回答

Angelo Yeo
Angelo Yeo 2024 年 7 月 23 日
Simple answer: Read the doc for anova2. There are examples which you can use to understand "how" to use anova2. Also, the doc can be also helpful.
So, what are SumAbsJtCbnMeanAST, SumAbsJtMtpMeanAST, SumAbsJtAnkMeanAST, SumAbsJtKneMeanAST, SumAbsJtHipMeanAST?
Without background information, no one can understand what you need but can only assume. With random values with random size, the code runs. What's your question?
SumAbsJtCbnMeanAST = rand(33,5,5);
SumAbsJtMtpMeanAST = rand(33,5,5);
SumAbsJtAnkMeanAST = rand(33,5,5);
SumAbsJtKneMeanAST = rand(33,5,5);
SumAbsJtHipMeanAST = rand(33,5,5);
% anova2
[pJtASTAnova2(1,:), ~] = anova2(...
[SumAbsJtCbnMeanAST(:,2:5,5)-SumAbsJtCbnMeanAST(:,1,5); ...
SumAbsJtCbnMeanAST(:,2:5,1)-SumAbsJtCbnMeanAST(:,1,1)], 11, "off" );
[pJtASTAnova2(2,:), ~] = anova2(...
[SumAbsJtMtpMeanAST(:,2:5,5)-SumAbsJtMtpMeanAST(:,1,5); ...
SumAbsJtMtpMeanAST(:,2:5,1)-SumAbsJtMtpMeanAST(:,1,1)], 11, "off" );
[pJtASTAnova2(3,:), ~] = anova2(...
[SumAbsJtAnkMeanAST(:,2:5,5)-SumAbsJtAnkMeanAST(:,1,5); ...
SumAbsJtAnkMeanAST(:,2:5,1)-SumAbsJtAnkMeanAST(:,1,1)], 11, "off" );
[pJtASTAnova2(4,:), ~] = anova2(...
[SumAbsJtKneMeanAST(:,2:5,5)-SumAbsJtKneMeanAST(:,1,5); ...
SumAbsJtKneMeanAST(:,2:5,1)-SumAbsJtKneMeanAST(:,1,1)], 11, "off" );
[pJtASTAnova2(5,:), ~] = anova2(...
[SumAbsJtHipMeanAST(:,2:5,5)-SumAbsJtHipMeanAST(:,1,5); ...
SumAbsJtHipMeanAST(:,2:5,1)-SumAbsJtHipMeanAST(:,1,1)], 11, "off" );
display(pJtASTAnova2)
pJtASTAnova2 = 5x3
0.8158 0.0019 0.9914 0.9757 0.0468 0.9605 0.8336 0.0251 0.9905 0.8994 0.0014 0.9372 0.9045 0.2244 0.9431
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
  1 件のコメント
병욱
병욱 2024 年 7 月 25 日
Thank you for your reply, maybe I should assure them more for myself. Hope you have a great day. Thank you!

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange빅 데이터 처리 についてさらに検索

Community Treasure Hunt

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

Start Hunting!