using ft_freqstatistics with 4 arguments

Oakman, Erin Erin.Oakman at NYUMC.ORG
Tue Aug 24 20:19:40 CEST 2010


Hi Fieldtrip list,

Apparently the nonparametric freqstatistics funtion can be used with a mixed design, to compare power between 2 groups and 2 conditions, using cfg.method = 'montecarlo'.  

 I am giving 4 arguments to ft_freqstatistics. 
stats = ft_freqstatistics(cfg, group1-condition1, group1-condition2, group2-condition1, group2-condition2)

>>From Robert's suggestion here https://listserv.surfnet.nl/scripts/wa.cgi?A2=ind0803&L=FIELDTRIP&P=R13471, the design matrix has been set up with 1 row for the condition (condition numbers "1", "2"), a second row with the subject number and a third row for the two groups ("1", "2").  I set:

cfg.ivar = 1;
cfg.uvar = 2;
cfg.wvar = 3;

The trouble is with resampledesign.m, using it in combination with ft_freqstatistics.   When resampledesign.m splits the design matrix into a smaller design matrix, using cfg.war, I get the error
??? the design matrix variables should be constant within a block

The design matrix is 3 X 100, like this:
condition:         1 1 1 1 1 2 2 2 2 2   1 1 1 1 1 2 2 2 2 2 
subj number:   1 2 3 4 5 6 7 8 9 10  1 2 3 4 5 6 7 8 9 10 
group:              1 1 1 1 1 1 1 1 1 1    2 2 2 2 2 2 2 2 2 2  

Should a different design matrix be used in this case? 
Should cfg.wvar = 2 ?


Erin




------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.



More information about the fieldtrip mailing list