help > Correlation with clinical scores
Showing 1-2 of 2 posts
Display:
Results per page:
Jul 11, 2014  02:07 PM | Peter McColgan
Correlation with clinical scores
Dear Andrew,

Thank you for all your help to date. I am keen to investigate correlations in clinical variables with single connection strengths of edges in a significant network.

Using the manual I have tried;

j=4; %Specify node 2 here
global nbs; N=nbs.STATS.N; ind_upper=find(triu(ones(N,N),1));
cross_ref=zeros(N,N); cross_ref(ind_upper)=1:length(ind_upper);
cross_ref=cross_ref+cross_ref'; ind=cross_ref(i,j);
fprintf('%0.2f\n',nbs.GLM.y(:,ind)');

I was hoping to get out connectivity strengths for each subject for the edge thus a vector of 1 x 18 although I can't seem to find this. What is the best way to go about this - or is it better to do it using a design matrix and if so how do I do this and include covariates. Sorry for the many questions and thank you again.

Regards,

Peter
Jul 14, 2014  12:07 AM | Andrew Zalesky
RE: Correlation with clinical scores
Hi Peter,

What you have done seems perfectly correct. Once you have typed those commands in the Matlab command window (after running the NBS) you should see a vector of connectivity strengths for each subject. Is this not what you see?

Note that you have not specified the value of "i". In what you have pasted below, "i" is not specified. For example, i=4 and j=6 will report connectivity strengths for the connection between the 4th and 6th nodes.

Also note, some people have reported that copying and pasting the commands from the reference manual to the command window does not work because the apostrophe is not copied properly. So you might want to make sure that the copy and past operation works properly.

Andrew

Originally posted by Peter McColgan:
Dear Andrew,

Thank you for all your help to date. I am keen to investigate correlations in clinical variables with single connection strengths of edges in a significant network.

Using the manual I have tried;

j=4; %Specify node 2 here
global nbs; N=nbs.STATS.N; ind_upper=find(triu(ones(N,N),1));
cross_ref=zeros(N,N); cross_ref(ind_upper)=1:length(ind_upper);
cross_ref=cross_ref+cross_ref'; ind=cross_ref(i,j);
fprintf('%0.2f\n',nbs.GLM.y(:,ind)');

I was hoping to get out connectivity strengths for each subject for the edge thus a vector of 1 x 18 although I can't seem to find this. What is the best way to go about this - or is it better to do it using a design matrix and if so how do I do this and include covariates. Sorry for the many questions and thank you again.

Regards,

Peter