For a provided spm object and a mask of voxel the function extracts the values of the parameter estimates within the searchlight region and for all voxel in the mask.
getSearchlightPattern(spm, voxel, radius)an object of class 'fmrispm'
a mask (logical) with dimensionality compatible to the spm
radius of the searchlight
an array of dimension c(nb, nsl, nvox) with nb the number of estimated parameters in spm$beta, nsl the number of voxel in the searchlight and nvox the number of voxel in the mask provided as second argument