I tried to do the friedman test to see if there are differences between my multiple measurements (OrderIntime, 5 different measurementtimes) over my 6 conditions (6 different SpeechRates SR). I measured correlations (in the brain) for 6 speech rates. For each speech rate I measured 5 times. And I have 20 subjects. However when I run the test:
friedman.test(EnvTrackAll$correlation, EnvTrackAll$OrderInTime, EnvTrackAll$subject)
I get this error:
Error in friedman.test.default(EnvTrackAll$correlation, EnvTrackAll$OrderInTime, :
not an unreplicated complete block design
How do I transform my dataframe into an unreplicated complete block design? Due to ethical reasons I can’t share my dataframe, but it looks like this for example (where A is my first subject):