0todd0000 / spm1d

One-Dimensional Statistical Parametric Mapping in Python
GNU General Public License v3.0
61 stars 21 forks source link

One sided t-tests #115

Closed mike214999 closed 4 years ago

mike214999 commented 4 years ago

Dear SPMlers

After some time I realized that my significant results were always two-tailed instead of one-tailed (that fits my hypothesis). However, when using ti = t.inference(0.05, two_tailed=False) it seems that it only tests in one direction as the result is not significant anymore. How can I instruct the model to test in the opposite direction ?

Thanks for help! Chris

cedricmorio commented 4 years ago

Have you tried to switch yA and yB params? Because as you have a directional hypothesis, you should always put the data in a specific order.