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  

|
November 23, 2005 12:50PM
Hi AFNI gods,

We're trying to shamelessly rip off AFNI code for Caret purposes. We want to convert t-stats and DOFs (unpooled, s1!=s2) to p-values, so we can develop a surface-based 3dFDR-like functionality. We tried using this code from mri_stats.c:

double student_t2p( double tt , double dof )
{
double bb , xx , pp ;

if( tt <= 0.0 || dof < 1.0 ) return 1.0 ;

bb = lnbeta( 0.5*dof , 0.5 ) ;
xx = dof/(dof + tt*tt) ;
pp = incbeta( xx , 0.5*dof , 0.5 , bb ) ;
return pp ;
}

But I see now that it returns 1 if t<0, so I'm guessing it's taking advantage of the symmetry. My question is then if we abs value negative t's before inputting to this routine, will we need to divide the resulting p by two if we want a two-tailed test? I'll probably have a "D'oh" moment of clarity later, but if anyone is still at work today and knows, I'll be grateful.

I tried this with my "1D" data files, but evidently I need at least one real volume:

3dcalc -a tstat_asdvcon_young_left.1D -b dof_asdvcon_young_left.1D -expr 'fitt_t2p(a,b)'

Donna Hanlon
Van Essen Lab
Subject Author Posted

fitt_t2p : stupid question

Donna Hanlon November 23, 2005 12:50PM

Re: fitt_t2p : stupid question

Donna Hanlon November 23, 2005 05:26PM