Clear Filters
Clear Filters

anova statistics

12 views (last 30 days)
병욱
병욱 on 23 Jul 2024 at 15:35
Commented: 병욱 on 25 Jul 2024 at 21:52
% 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.

Accepted Answer

Angelo Yeo
Angelo Yeo on 23 Jul 2024 at 23:48
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 Comment
병욱
병욱 on 25 Jul 2024 at 21:52
Thank you for your reply, maybe I should assure them more for myself. Hope you have a great day. Thank you!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!