From polomacnenad at gmail.com Wed Feb 22 06:35:51 2017 From: polomacnenad at gmail.com (Nenad Polomac) Date: Wed, 22 Feb 2017 07:35:51 +0100 Subject: [Fieldtrip] design matrix (in)dependent sample t-test in ft_freqstatistics Message-ID: Dear Fildtripusers, I have some time-freq EEG data from 2 Groups (25 Patients and 25 Controls). There are 2 conditions in the paradigm. I would like to do dependent sample t-test to compare conditions within Groups. Also I need independent sample t-test between the Groups. We have some preknowledge about the effects, so we want to look in already defined sensors within certain frequency and latency (no multiple comparison problem). I have difficulties finding a solution for the design matrix in the ft_freqstatistics. I am not sure if this solution for dependent sample t-test is correct? nsubj=25; cfg.design=design(1,:) = [1:nsubj 1:nsubj]; cfg.design=design(2,:) = [ones(1,nsubj) ones(1,nsubj)*2]; uvar = 1; ivar = 2; For independent sample t-test I have no idea.I couldn't find solution on the Tutorial Documentation page. Any suggestion is greatly appreciated. Thank you in advance! Nenad Virus-free. www.avast.com <#m_-6583688795636336439_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -------------- next part -------------- An HTML attachment was scrubbed... URL: