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 CenterFile Exchange 中查找有关 빅 데이터 처리 的更多信息

Community Treasure Hunt

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

Start Hunting!