0todd0000 / spm1dmatlab

One-Dimensional Statistical Parametric Mapping in Matlab.
GNU General Public License v3.0
26 stars 13 forks source link

correlation coefficient obtained using "spm.r" #203

Open hjr1949 opened 2 months ago

hjr1949 commented 2 months ago

Dear Prof Pataky: Why is the correlation coefficient obtained using "spm.r" in MATLAB exactly the same as the one obtained using the "correl" function in Excel? What are the differences between SPM statistical correlation analysis and traditional Pearson correlation analysis? Thank you your time

Huang

0todd0000 commented 2 months ago

You are correct, this is the normal correlation coefficient.

You will also find that the t-statistic values that spm1d yields are the same as those from standard t tests.

SPM calculates test statistic values in exactly the same way that classical methods do. The only real difference between SPM and traditional methods occurs at the inference stage (i.e., when probability values are calculated). SPM using random field theory (RFT) to calculate the probabilities that smooth Gaussian random fields will produce threshold test statistic continua various topological features. RFT-based inference is implemented in several open-source packages but is not included in standard commercial software like Excel, MATLAB, SPSS, etc. You can read more about RFT here: https://spm1d.org/rft1d/Theory.html

hjr1949 commented 2 months ago

Thanks for your replying。     (1)So, does SPM only differ from traditional statistics in how significance is determined?     (2) Are there any easy-to-understand learning materials or videos available?

------------------ 原始邮件 ------------------ 发件人: "0todd0000/spm1dmatlab" @.>; 发送时间: 2024年4月22日(星期一) 中午11:18 @.>; @.**@.>; 主题: Re: [0todd0000/spm1dmatlab] correlation coefficient obtained using "spm.r" (Issue #203)

You are correct, this is the normal correlation coefficient.

You will also find that the t-statistic values that spm1d yields are the same as those from standard t tests.

SPM calculates test statistic values in exactly the same way that classical methods do. The only real difference between SPM and traditional methods occurs at the inference stage (i.e., when probability values are calculated). SPM using random field theory (RFT) to calculate the probabilities that smooth Gaussian random fields will produce threshold test statistic continua various topological features. RFT-based inference is implemented in several open-source packages but is not included in standard commercial software like Excel, MATLAB, SPSS, etc. You can read more about RFT here: https://spm1d.org/rft1d/Theory.html

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>