<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-GB style='word-wrap:break-word'><div class=WordSection1><div><p class=MsoNormal>Dear community,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I'm Lucija and currently I'm analysing the plantar pressure data collected with Pedar-X system. I'm using SPM-method to analyse the data. The data files are ascii. and fgt. files. The data size is 90x40x number of subjects. For my research, I'm comparing two groups of different sizes with independent sample t-test. I tried using function ft_timelockstatistics to perform statistical analysis. <o:p></o:p></p><p class=MsoNormal>This is the code I used: <o:p></o:p></p><p class=MsoNormal>cfg = []; <o:p></o:p></p><p class=MsoNormal>cfg.channel = 'all';<o:p></o:p></p><p class=MsoNormal>cfg.neighbours = neighbours;<o:p></o:p></p><p class=MsoNormal>cfg.latency = [1 norm_frames];<o:p></o:p></p><p class=MsoNormal>cfg.avgovertime = 'no';<o:p></o:p></p><p class=MsoNormal>cfg.parameter = 'avg';<o:p></o:p></p><p class=MsoNormal>cfg.method = 'montecarlo';<o:p></o:p></p><p class=MsoNormal>cfg.statistic = 'ft_statfun_indepsamplesT';<o:p></o:p></p><p class=MsoNormal>cfg.alpha = 0.05;<o:p></o:p></p><p class=MsoNormal>cfg.correctm = 'cluster';<o:p></o:p></p><p class=MsoNormal>cfg.correcttail = 'prob';<o:p></o:p></p><p class=MsoNormal>cfg.numrandomization = 500; <o:p></o:p></p><p class=MsoNormal>cfg.labels = neighbours;<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>cfg.design(1,1:(Nsub_ulcer+Nsub_noulcer)) = [ones(1,Nsub_ulcer) 2*ones(1,Nsub_noulcer)];<o:p></o:p></p><p class=MsoNormal>cfg.ivar = 1; <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:Consolas'>stat = ft_timelockstatistics(cfg, DataC1{:}, DataC2{:});</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>After running the statistics, I am getting p-values equal to 1 for many sensors. I understand there might be no significant differences because of the variation between the groups, but the fact that the probabilities are almost all 1 seems incorrect to me. Does anyone see the error in the code that might have caused this problem?<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I have also tried plotting the data by calculating the average difference between the groups. I have used this code for plotting:<o:p></o:p></p><p class=MsoNormal>cfg = []<o:p></o:p></p><p class=MsoNormal>cfg.parameter = 'avg'<o:p></o:p></p><p class=MsoNormal>cfg.operation = 'subtract'<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>for i = 1:Nsub_ulcer<o:p></o:p></p><p class=MsoNormal>data{i} = ft_math(cfg, DataC1{i})<o:p></o:p></p><p class=MsoNormal> end<o:p></o:p></p><p class=MsoNormal>for k = 1: Nsub_noulcer<o:p></o:p></p><p class=MsoNormal> data{k} = ft_math(cfg, DataC2{k})<o:p></o:p></p><p class=MsoNormal> end<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>cfg.gridscale = 90<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>cfg.projection = 'orthographic' <o:p></o:p></p><p class=MsoNormal> cfg.viewpoint = 'left'<o:p></o:p></p><p class=MsoNormal>cfg.style = 'both';<o:p></o:p></p><p class=MsoNormal>cfg.layout = 'ast_insole_xw';<o:p></o:p></p><p class=MsoNormal>cfg.highlight = 'on';<o:p></o:p></p><p class=MsoNormal>cfg.highlightchannel = find(stat.mask);<o:p></o:p></p><p class=MsoNormal>cfg.comment = 'no';<o:p></o:p></p><p class=MsoNormal>cfg.colorbar = 'yes'<o:p></o:p></p><p class=MsoNormal>figure; ft_topoplotER(cfg, <span style='font-size:10.0pt;font-family:Consolas'>data{:}</span>)<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I am getting an error with the cfg.operation where arrays have incompatible sizes for this operation. Does anyone know the solution to this error? <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Any help would be appreciated!<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Kind regards,<o:p></o:p></p><p class=MsoNormal><span lang=HR>Lucija Ninčević<o:p></o:p></span></p><p class=MsoNormal><span lang=HR>Master student at Vrije Universiteit Amsterdam</span><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>