<div dir="ltr"><div>Dear Fieldtrippers,<br><br>I'm trying to run a multivariate analysis to see if my data could classify trial types correctly. I'd like to use 'resample' option in dml.crossvalidator, since number of trials are sometimes quite different between trial types. </div>
<div><br></div><div>When I feed in cfg.mva (at the end of this message), I get an error message: </div><div>"No appropriate method, property, or field test for class dml.crossvalidator.</div><div><br></div><div>Error in dml.analysis/test (line 65)</div>
<div> Y = obj.method{c}.test(Y);</div><div><br></div><div>Error in dml.crossvalidator/train (line 159)</div><div> obj.result{f} = tproc.test(testX);"</div><div><br></div><div><br></div><div>
I think it's because the inputs to dml.crossvalidator are not properly entered. Could someone suggest a good way to format the inputs?</div>
<div><br></div><div>Here is what I'm running:</div>cfg=[]; % perform classification on the two TFRs<br>cfg.channel = 'Fp1';<br>cfg.frequency = [4 8];<br>cfg.latency = [.4 4.6];<br>cfg.method='crossvalidate';<br>
cfg.design=[ones(size(TFRcond1.powspctrm,1), 1); 2.*ones(size(TFRcond2.powspctrm,1), 1)]';<br>cfg.statistic = {'accuracy' 'binomial' 'contingency'};<br>cfg.mva = dml.crossvalidator('mva',{dml.standardizer() dml.svm()},'resample',true);<br>
stat=ft_freqstatistics(cfg, TFRcond1, TFRcond2);<div><br></div><div>Thanks in advance!</div><div>Akiko</div><div><br></div><div>-- <br><div dir="ltr"><font><span style="font-family:arial,helvetica,sans-serif">Akiko Ikkai, Ph.D.</span></font><br>
</div>
</div></div>