Closed bernard-liew closed 9 years ago
Hi Bernard,
Before getting to your question note that there may be two relevant but separate issues:
Kiebel, S., Poline, J., Friston, K., Holmes, A., & Worsley, K. (1999). Robust smoothness estimation in statistical parametric maps using standardized residuals from the general linear model. NeuroImage, 10(6), 756–766.
Returning to your question:
Your question sounds like it refers to the first issue above. A "cutoff" is usually a parameter for low-pass or high-pass filtering. The smoothing functionality available in spm1d is currently limited to simple 1D Gaussian filtering. I'd therefore recommend smoothing your data with other software before conducting SPM analysis. One good option in Python is scipy.signal: http://docs.scipy.org/doc/scipy/reference/signal.html There are many filtering options including Butterworth filters which explicitly incorporate cutoffs (see the section: Matlab-style IIR filter design at the link above).
Regards, Todd
Many Thanks Todd,
Actually I am referring to smoothness, but didn't realise that it is different from smoothing. I think I am slowly grasping the conceptual idea (maybe not the nuances.)
I do have other conceptual questions for SPM.
1) It is known that the statistical test drives the sample size calculation. How can one use spm to drive sample size calculations?
2) SPM is at a relative infancy and repeated measures SPM anova is in the works. If I have a single group undergoing say 6 repeated testings on gait kinematics, is it advisable to use multiple paired SPM t test with correction, or use traditional statistical measures on extracted scalar parameters?
Regards, Bernard
Hi Bernard,
Friston, K. J., Holmes, A., Poline, J. B., Price, C. J., & Frith, C. D. (1996). Detecting activations in PET and fMRI: levels of inference and power. NeuroImage, 4(3 Pt 1), 223–235. http://doi.org/10.1006/nimg.1996.0074
http://www.sciencedirect.com/science/article/pii/S1053811996900749a. SPM is at a relative infancy and repeated measures SPM anova is in the works.
spm1d is indeed in its infancy, but note that SPM as a general methodology is fairly mature:
Friston, K., Ashburner, J., Kiebel, S., Nichols, T., & Penny, W. (2007). Statistical Parametric Mapping: The Analysis of Functional Brain Images. Elsevier, London.
b. If I have a single group undergoing say 6 repeated testings on gait kinematics, is it advisable to use multiple paired SPM t test with correction...
Multiple paired t tests (with a correction for multiple comparisons) should yield identical results to repeated-measures ANOVA. This is true for both 1D data (using approaches like SPM) and standard 0D data. The main advantage of ANOVA is that it provides results compactly when there are no effects. When significant effects are present in ANOVA (i.e. F tests), one is usually obliged to report which groups differ in post hoc analyses (i.e. t tests). So you'd just be starting at the post hoc level and the only disadvantage is that this would be less clean than ANOVA in the case of no effects. Note that repeated-measures ANOVA will be available in the next major release of spm1d, coming later this year.
c. ... or use traditional statistical measures on extracted scalar parameters?
If your hypothesis pertains to 1D variables like kinematic trajectories then you should probably use a 1D methodology like SPM. If your hypothesis pertains to 0D variables (e.g. extracted scalars) then it would probably be best to (i) explicitly identify those 0D variables before conducting the experiment, (ii) measure only those 0D variables if possible, otherwise (iii) extract, analyze and report only those 0D variables.
Last, note that SPM is actually the same as traditional methodology (including both classical hypothesis testing and Bayesian inference); the only real difference is that SPM uses a model of 1D (or nD) randomness and traditional methods use a model of 0D randomness. That 1D model of randomness allows you conduct all traditional analyses (t tests, sample size calculations, etc.) at the 1D level.
Todd
Hello,
I am Bernard, a PhD student from Curtin, (Western Australia). I am new to python, programming and spm in general and need further help in understanding spm1d. The documentation at spm1d.org and papers on spm mentions smoothing a 1d curve. I would like to know what 'cut-off' is used to smooth the curve? Essentially, what determines the cut-off value?
Regards, Bernard