Why is there only one p-Value for the friedman test although it's a two way design

조회 수: 20 (최근 30일)
like already in the title: i was searching for something like the 2 way anova but without the normal distribution requirement. the friedman test allows a two way layout but i only get 1 p-valie. but i want to know the impact of rows and column.
What am I misunderstanding? best regards
  댓글 수: 4
Scott MacKenzie
Scott MacKenzie 2021년 5월 2일
OK, so head turn (degrees) is a ratio-scale measurment. You'd probably be just using using the parmetric Anova to analyse the data.
Jonas
Jonas 2021년 5월 2일
actually i also used the parametric 2 way anova in the end instead of anova ;) but the original question remained and i was happy with the answer i accepted below. but tahbk you for providing some additional information and helping me a bit more in detail regarding this topic!

댓글을 달려면 로그인하십시오.

채택된 답변

Shashank Gupta
Shashank Gupta 2021년 4월 22일
Hi Jonas,
Friedman test in MATLAB as you pointed out give only one p-value which is associated with the column effect. Friedman effect cannot be used for interactions between the row and column factors. Although there are some workaround for separately finding out the p-values for row and column effect.
Test for column effect :-
p = friedman(x)
Test for row effect :-
% For data matrix with no replication, row effect can simply be done by
% taking transpose.
p = friedman(x');
% If the data matrix has replication then it is slightly complicated, below
% is one such template that can be done.
x = reshape(x, [3 2 3]); % First convert the data into 3 dimension data, with the first dimension representing the replicates
x = permute(x, [1 3 2]); % swapping the other two dimensions
x = reshape(x, [9 2]); % restoring the two-dimensional shape
p = friedman(x, 3);
I hope this helps.
Cheers
  댓글 수: 1
Jonas
Jonas 2021년 4월 23일
many thanks, i saw this dimension swapping already somewhere, but that was a point in time where i didn't need it yet. Couldn't find it in the aftermath. Thank you very much!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Analysis of Variance and Covariance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by