Corrected p-value during correlation analysis

4 views (last 30 days)
Hi everyone,
I am interested in doing multiple corrections while doing some correlation analysis.
I have brain thickness data of 50 subject's 14 brain networks: 7 networks on left hemisphere and 7 networks on right hemisphere i.e. X = 50x7x2. I would like to see whether thickness of each network of these 50 subjects is correlated with age i.e. my age variable is a vector of size 50 values i.e. Y = 50x1.
Could you please tell me how and which MATLAB program can I use to estimate 14 correlation coefficient values and corrected p-value of each of these correlations?
Thanks a lot.

Answers (2)

Walter Roberson
Walter Roberson on 20 Feb 2017
T1 = reshape(thicknesses, [], 14);
T2 = reshape(ages, [], 1);
T3 = [T1, T2];
c = cov(T3);
correlations_you_care_about = reshape( c(end,1:end-1), 7, 2);
  1 Comment
Sahil Bajaj
Sahil Bajaj on 20 Feb 2017
Edited: Sahil Bajaj on 20 Feb 2017
Hi Walter, Thanks for your reply. In the last line, correlations_you_care_about = reshape( c(end,1:end-1), 7, 2); I am not sure how reshape( c(end,1:end-1), 7, 2); will calculate correlations and p-values. Are there typos in this line?

Sign in to comment.


Star Strider
Star Strider on 20 Feb 2017
If you have the Statistics and Machine Learning Toolbox, you can do the sort of categorical regression they discuss, with multiple comparisons. The most obvious reason to adapt their statistical analysis procedure is that these authors have published in a refereed journal, and you would be using an accepted technique.
There may be other papers with statistical analysis techniques better suited to your experimental design. Search PubMed with the search string brain & volume & age for all 12276 similar articles.
I wish you success in your research.
  2 Comments
Sahil Bajaj
Sahil Bajaj on 20 Feb 2017
Thanks Star for suggesting this publication. This looks a useful paper to me.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!