Dear Maria and Andy,
spm_invTcdf and spm_ncTcdf can be used as drop-in replacements of tinv
and nctcdf respectively, if you don't have the MATLAB Statistics toolbox.
I'm not familiar with the fmripower toolbox so it is possible that you
might have to make further adjustments to its code.
Best regards,
Guillaume.
On 29/05/14 14:29, Marga Veldhuizen wrote:
> Hi Andy,
>
>
>
> I ran into this problem the other day myself. I think it is because
> Matlab cannot find the function tinv. Add the stats toolbox and
> subfolder to the Matlab path (file -> set path). If you don’t have the
> stats toolbox I’m not sure if there is a solution.
>
>
>
> Best,
>
>
>
> Maria
>
>
>
>
>
> Maria Geraldine Veldhuizen, PhD
>
> Associate Research Scientist
>
> Neuropsychology and Physiology of Flavor and feeding
> <http://jbpierce.org/neuropsychology-and-physiology-of-flavor-and-feeding/>
>
> The John B. Pierce Laboratory
>
> Yale University School of Medicine
>
> [log in to unmask] <mailto:[log in to unmask]>
>
> office: (203) 562 9901 ext. 251
>
> lab: (203) 562 9901 ext. 210
>
>
>
>
>
> *From:*SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]]
> *On Behalf Of *Andy Yeung
> *Sent:* Thursday, May 29, 2014 8:20 AM
> *To:* [log in to unmask]
> *Subject:* Re: [SPM] Mumford fmripower
>
>
>
> Pardon?
>
>
>
> On Thu, May 29, 2014 at 12:06 PM, <[log in to unmask]
> <mailto:[log in to unmask]>> wrote:
>
>
>
>
>
> Enviado desde mi smartphone BlackBerry 10.
>
> *De: *Andy Yeung
>
> *Enviado: *miércoles, 28 de mayo de 2014 23:50
>
> *Para: *[log in to unmask] <mailto:[log in to unmask]>
>
> *Responder a: *Andy Yeung
>
> *Asunto: *[SPM] Mumford fmripower
>
>
>
> Dear all,
>
>
>
> I used the fmripower developed by Mumford et al to calculate power for
> future studies. Error pops up. Could anyone help me?
>
>
>
> Error using fileparts (line 31)
>
> Input must be a row vector of characters.
>
>
>
> Error in fmripower_spm/roi_push_Callback (line 313)
>
> [pth,name, ext]=fileparts(handles.roi_mask);
>
>
>
> Error while evaluating uicontrol Callback
>
>
>
> Undefined function 'tinv' for input arguments of type 'double'.
>
>
>
> Error in calc_pow_lev2_individual (line 107)
>
> power_results.power(k)=100*(1-nctcdf(-1*tinv(alpha, t_df), t_df, ncp));
>
>
>
> Error in fmripower_spm/calculate_power_estimate (line 780)
>
> power_estimate =
> calc_pow_lev2_individual(ctop,var_avg,handles.new_design_file,
>
> ...
>
>
>
> Error in fmripower_spm/start_calc_push_Callback (line 431)
>
> pow_est =
> calculate_power_estimate(handles,pth_save,range_start,range_end);
>
>
>
> Error while evaluating uicontrol Callback
>
>
>
> Best,
>
> Andy
>
>
>
>
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|