Hi Marina, Could you send me (via some file sharing service) your M1, M2, design.mat and design.com files? Thanks! All the best, Anderson On Fri, 18 Jan 2019 at 13:52, Marina Papoutsi <[log in to unmask]> wrote: > Hello again, > > I am still not closer to solving the problem below. > > The same analysis seems to run fine in randomise, but it still doesn't > work with PALM. I would ideally like to be able to use PALM, because of > the NPC feature, which I would like to use for another analysis. > > This is the command that I use with randomise > > randomise -i M1 --vxf=M2 --vxl=1 -d design.mat -t design.con -o Out -n > 5000 -T -D > > > Here is again the command that I use in PALM, which gives me the warning > about the singular matrix. > > palm -i M1 -evperdat M2 1 1 -d design.mat -t design.con -o Out -n 500 > -accel tail -nouncorrected -T -logp -saveglm -demean > > The design and contrast are mentioned below. > > Any help would be greatly appreciated. > > Many thanks again > > M > > > On 15/01/2019 18:07, Marina Papoutsi wrote: > > Hi, > > > > I would like to check the relationship between two imaging modalities, > M1 and M2 while adjusting for age and gender. I have 32 participants > > My design matrix includes 3 columns such as > > > > 1 age1 0 > > 1 age2 1 > > ... > > 1 age32 0 > > > > The first column is the dummy column for M2. Age is not mean centred and > gender is coded as M=1, F=0. > > I did not include an intercept and use -demean. > > > > The contrasts testing for the effect of M2 on M1 are: > > 1 0 0 > > -1 0 0 > > > > The palm command that I use is: > > palm -i M1 -evperdat M2 1 1 -d design.mat -t design.con -o Out -n 500 > -accel tail -nouncorrected -T -logp -saveglm -demean > > > > When I run this I get an error: > > > > Warning: Matrix is singular to working precision. > >> In palm_core>fastt3d (line 2757) > > In palm_core (line 1469) > > In palm (line 81) > > Warning: Matrix is singular to working precision. > > > > I am not sure what I am doing wrong. > > I tried adding an intercept , but it doesn't run at all when using demean > > I get "Error using palm_takeargs Arguments must be 2-D, or at least one > argument must be scalar." > > > > Many thanks for the help! > > Marina > > > > ######################################################################## > > To unsubscribe from the FSL list, click the following link: > https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1 > ######################################################################## To unsubscribe from the FSL list, click the following link: https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1