<div dir="ltr"><span style="font-size:12.8px">Dear Fieldtrippers,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have a question about design for ft_freqstatistics.</div><div style="font-size:12.8px">I have only 4 subjects with 2 conditions*300 observations.</div><div style="font-size:12.8px">So far I did a single - subject statistics, but I would like to estimate the effect on the group level by pulling subjects together without averaging across trials. In this case I need to control for the fact that 4 subsets of my data are coming from different subjects.</div><div style="font-size:12.8px">I assume that design matrix should look like this (2 conditions, 4 subjects, 3observation(as an example)):</div><div style="font-size:12.8px"><br></div><img src="cid:ii_15cf8e88b5b32395" alt="Inline images 1" width="294" height="59" class="gmail-CToWUd" style="font-size: 12.8px; margin-right: 0px;"><div><span style="font-size:12.8px">*(I hope you can see the picture...)</span></div><div><span style="font-size:12.8px"><br></span><div style="font-size:12.8px">cfg.ivar  = 1;  % 2 conditions<br></div><div style="font-size:12.8px">cfg.cvar  = 2; % I assume "subject" can be treated as a control variable<br></div><div style="font-size:12.8px">cfg.uvar  = 3; % observations<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Do you think the control variable is a proper way to control for "subject" effect?<br><br>Kind Regards,<br>Elena</div></div></div>