AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
July 22, 2016 11:34AM
Greetings everyone,

I have a quick question on generating p-values from datasets in AFNI.

I have a 3 3dDatasets. One dataset contains coefficients (X), one contains the mean (Mu), the other contains standard deviation (SD). I would like to get the corresponding p-value (2-tailed) for these values. I've modeled my 3dcalc code after SAS commands, where the pvalues would correspond to one half of the distribution as:

2*stat2cdf(X,11,mu,SD,0) \

and the other half is:

2*(1-stat2cdf(X,11,mu,SD,0) \

depending on whether or not X is greater than Mu or not.

My question is, am I using the 3dcalc command correctly here, or am I overcomplicating the cdf command? I would use code 2 , but the coeffecient is not a correlation coeffecient.

Thank you and apologies if I am being confusing!
Cheers,
~Nate
Subject Author Posted

Generating p-values from datasets

Nathaniel Harnett July 22, 2016 11:34AM

Re: Generating p-values from datasets

gang July 25, 2016 10:29AM

Re: Generating p-values from datasets

Nathaniel Harnett July 27, 2016 12:16PM

Re: Generating p-values from datasets

gang July 28, 2016 09:14AM

Re: Generating p-values from datasets

Nathaniel Harnett July 28, 2016 04:09PM