Closed Woollie98 closed 4 months ago
These high values occur because the sample size is too small, and because variance is zero or numerically very close to zero. With just three observations (one for each of three A conditions) there is no within-condition variance. Please use a bigger sample size, with preferably five or more observations for each condition.
Note that the dependent variable array Y
with a size of 3x100
is interpreted as "3 observations of 100-node 1D processes".
Okay thanks for the answer now it makes totally sense. So i guess i've used the wrong example for my problem. Is there an alternate example script to analyze the given data? The aim of the spm analysis should be to compare 3 different measurement techniques for joint angle data (which represent the variables y1,y2 & y3).
No there is unfortunately no other script. If you would like to conduct statistical testing of any kind you need more than one observation per group.
Hi, by rewriting the example file (ex1d_anova1.m) for trying to operate a one way anova spm analysis on time-normalized joint angle data, i stumbled across immensly high values for z (between +3x10^16 and -0.8x10^16) that i cant explain. I just changed A into a vector 3x1 A=[0;1;2] and put Y into a 3x100 double containing the normalized joint angle data, where the three different rows (y1, y2, y3) show 3 different measurement procedures. Nothing else was changed and the normalized joint angle data contains 'normal' values between roughly -40° and +50°. I will pin the resulting plot and my code, if there is anyone that might know why this happens, I'd appreciate the help! Kind regards