PalamedesのDemoから、PAL_PFML_Demoを試す。
PAL_PFML_Demo Demonstrates use of Palamedes functions to (1) fit a Psychometric Function to some data using a Maximum Likelihood criterion, (2) determine standard errors of free parameters using a bootstrap procedure and (3) determine the goodness-of-fit of the fit.
Parametric Bootstrap を指定。以下結果。
Fitting function.....
done:
Threshold estimate: 0.0584
Slope estimate: 66.4521
Determining standard errors.....
done:
Standard error of Threshold: 0.0036
Standard error of Slope: 11.1454
Determining Goodness-of-fit.....
done:
Deviance: 7.9773
p-value: 0.0900
Elapsed time is 21.034485 seconds.
元データは以下のように指定。
%Stimulus intensities
StimLevels = [0.01 0.03 0.05 0.07 0.09 0.11];
%Number of positive responses (e.g., 'yes' or 'correct' at each of the
% entries of 'StimLevels'
NumPos = [45 55 72 85 91 100];
%Number of trials at each entry of 'StimLevels'
OutOfNum = [100 100 100 100 100 100];