Katarzyna Kuryło https://orcid.org/0000-0002-5907-6128 , Łukasz Smaga https://orcid.org/0000-0002-2442-8816

© K. Kuryło, Ł. Smaga. Article available under the CC BY-SA 4.0 licence


(English) PDF


This paper is inspired by medical studies in which the same patients with multiple sclerosis are examined at several successive visits (doctor’s appointments) and described by fractional anisotropy tract profiles, which can be represented as f unctions. Since the observations for each patient are dependent random processes, they follow a repeated measures design for functional data. To compare the results for different visits, we thus consider functional repeated measures analysis of variance. For this purpose, a pointwise test statistic is constructed by adapting the classical test statistic for one-way repeated measures analysis of variance to the functional data framework. By integrating and taking the supremum of the pointwise test statistic, we create two global test statistics. In addition to verifying the general null hypothesis of the equality of mean functions corresponding to different objects, we also propose a simple method for post hoc analysis. We illustrate the finite sample properties of permutation and bootstrap testing procedures in an extensive simulation study. Finally, we analyze a real data example in detail. All methods are implemented in the R package rmfanova, available on CRAN.


analysis of variance, bootstrap, functional data analysis, permutation method, post hoc analysis, repeated measures


Amro, L., Pauly, M., Ramosaj, B., (2021). Asymptotic-Based Bootstrap Approach for Matched Pairs with Missingness in a Single Arm. Biometrical Journal, 63, pp. 1389– 1405.

Box, G. E. P., (1954). Some Theorems on Quadratic Forms Applied in the Study of Analysis of Variance Problems, I. Effect of Inequality of Variance in the One-Way Classification. The Annals of Mathematical Statistics, 25, pp. 290–302.

Cuevas, A., Febrero, M., Fraiman, R., (2004). An ANOVA Test for Functional Data. Computational Statistics & Data Analysis, 47, pp. 111–122.

Ditzhaus, M., Genuneit, J., Janssen, A., Pauly, M., (2021). CASANOVA: Permutation Inference in Factorial Survival Designs. Biometrics, pp. 1–13.

Ferraty, F., Vieu, P., (2006). Nonparametric Functional Data Analysis: Theory and Practice. New York: Springer.

Goldsmith, J., Scheipl, F., Huang, L., Wrobel, J., Di, C., Gellar, J., Harezlak, J., Mclean, M.W., Swihart, B., Xiao, L., Crainiceanu, C., Reiss, P. T., (2022). refund: Regression with Functional Data. R Package version 0.1-28, https://CRAN.R-project.org/package=refund.

Horváth, L., Kokoszka, P., (2012). Inference for Functional Data with Applications. New York: Springer.

Konietschke, F., Bathke, A. C., Harrar, S. W., Pauly, M., (2015). Parametric and Nonparametric Bootstrap Methods for General MANOVA. Journal of Multivariate Analysis, 140, pp. 291–301.

Konietschke, F., Pauly, M., (2014). Bootstrapping and Permuting Paired t-Test Type Statistics. Statistics and Computing, 24, pp. 283–296.

Kuryło K., Smaga ł. (2023). rmfanova: Repeated Measures Functional Analysis of Variance. R package Version 0.1.0, https://CRAN.R-project.org/package=rmfanova.

Martínez-Camblor, P., Corral, N., (2011). Repeated Measures Analysis for Functional Data. Computational Statistics & Data Analysis, 55, 3244–3256.

Mrkviˇcka, T., Myllymäki, M., Jílek, M., Hahn, U., (2020). A One-Way ANOVA Test for Functional Data with Graphical Interpretation. Kybernetika, 56, pp. 432–458.

Pini, A., Vantini, S., Colosimo, B. M., Grasso, M., (2018). Domain-Selective Functional Analysis of Variance for Supervised Statistical Profile Monitoring of Signal Data. Journal of the Royal Statistical Society: Series C (Applied Statistics), 67, pp. 55–81.

Ramsay, J. O., Hooker, G., Graves, S., (2009). Functional Data Analysis with R and MATLAB. Berlin: Springer.

Ramsay, J. O., Silverman, B.W., (2005). Functional Data Analysis, 2nd Edition. New York: Springer.

R Core Team, (2022). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.R-project.org/

Smaga, Ł., (2019). Repeated Measures Analysis for Functional Data Using Box-Type Approximation – with Applications. REVSTAT – Statistical Journal, 17, pp. 523–549.

Smaga, Ł., (2020). A Note on Repeated Measures Analysis for Functional Data. AStA Advances in Statistical Analysis, 104, pp. 117–139.

Smaga, Ł., (2021). One-Way Repeated Measures ANOVA for Functional Data. In: Data Analysis and Rationality in a Complex World. IFCS 2019. Studies in Classification, Data Analysis, and Knowledge Organization. T. Chadjipadelis, B. Lausen, A. Markos, T. R. Lee, A. Montanari, R. Nugent (eds.): Springer, Cham., pp. 243–251.

Smaga, Ł., Zhang, J. T., (2020). Linear Hypothesis Testing for Weighted Functional Data with Applications. Scandinavian Journal of Statistics, 47, pp. 493–515.

Tukey, J. W., (1953). The Problem of Multiple Comparisons. Princeton University.

Zhang, J. T., (2013). Analysis of Variance for Functional Data. London: Chapman & Hall.

Zhang, J. T., Cheng, M. Y., Wu, H. T., Zhou, B., (2019). A New Test for Functional One- Way ANOVA with Applications to Ischemic Heart Screening. Computational Statistics & Data Analysis, 132, pp. 3–17.

Back to top
© 2019–2024 Copyright by Statistics Poland, some rights reserved. Creative Commons Attribution-ShareAlike 4.0 International Public License (CC BY-SA 4.0) Creative Commons — Attribution-ShareAlike 4.0 International — CC BY-SA 4.0