help > RE: NBS not running. Tried everything I can think of.
Nov 5, 2023  09:11 AM | Max von Gellhorn
RE: NBS not running. Tried everything I can think of.

Hello, from your description, I would say that this should all be correct. The error "Stop Design Matrix not Found" is called if the number of matrices for the subjects does not correspond to the number of entries in the design matrix. Or if it does not recognize the entries as numbers.


In order to better localize the error, the file from the design would be useful.


 


regards Max


 


Originally posted by derya:



Hello,


I really want to try NBS as it is such a great tool. But, I am not sure why my analysis is not working. I would appreciate some guidance to help me troubleshoot.


I keep getting the same error, "Stop: Design Matrix not found or inconsistent."


I set the path in Matlab for the NBS1.2 directory. Path to directory: D:/MATLAB/NBS1.2


The directory with my data (matrices..design matrix..) is NBS. Path to directory: D:/MATLAB/NBS


In Matlab I am working in the D:/MATLAB Directory. I even tried working directly in the NBS directory where my data is stored.


I am able to run the schnizophrenia example analysis with the data provided in the NBS1.2 folder, but nothing seems to work for my situation. I am using the Matlab version 2022a.


 


I tried looking at examples of design matrix txt files in this forum.


The 1st column is intercept, 2nd is patient (1) and then control (-1), 3rd is behavioural measure, and the 4th column is the interaction. As an aside, I have 14 patients and 14 controls. Here is the snippet of 3 patients, then 3 controls. 


1  1  91  91
1  1  89  89
1  1  90  90
1 -1 111 -111
1 -1 111 -111
1 -1  98  -98


For the contrast, I tried [0,0,0,1]. T-test. I even tried removing commas.


 


The second design matrix I tried to run was:


1 91 91
1 89 89
1 90 90
0 111 0
0 111 0
0 98 0


The 1st column is patient (1) and then control (0), 2nd is behavioural measure, and the 3rd column is the interaction.


I used the contrast [0,0,1] and again I selected T-test.


I still got the same error. I went back and looked at my matrices and even removed the NaN and replaced it with a value of 1. (I attached one of my matrices). I have 28 in total. I also made sure the path to the data was clearly written in NBS.


Am I missing something? I want to see how functional connectivity relates to behavioural measures of visual perception, and does this relationship differ between patient and control groups?


I look forward to any suggestions or if you can let me know why I keep getting the same error message that would be very much appreciated. I spent a lot of time alone trying to troubleshoot this issue with no sucess as of yet...


 


Thank you again.


 


 



 

Threaded View

TitleAuthorDate
derya Nov 4, 2023
RE: NBS not running. Tried everything I can think of.
Max von Gellhorn Nov 5, 2023
derya Nov 5, 2023
Max von Gellhorn Nov 5, 2023
deryaadil Nov 5, 2023
derya Nov 5, 2023