mGSFPCA: Estimate Functional Principal Components from Sparse Data

Implements functional principal component analysis (FPCA) for univariate and multivariate sparse functional data. The package estimates eigenfunctions, eigenvalues, and error variance simultaneously via maximum likelihood estimation (MLE), using a spline basis representation of the eigenfunctions. Orthonormality of the estimated eigenfunctions is enforced through a modified Gram-Schmidt (MGS) orthogonalization procedure applied iteratively during estimation, avoiding direct optimization over the Stiefel manifold and improving numerical stability. The optimal number of basis functions and principal components is selected via an Akaike Information Criterion (AIC)-type criterion, supporting both a full grid-search strategy and a computationally efficient sequential selection approach. Principal component scores are estimated by conditional expectation, enabling reconstruction of individual trajectories over the entire domain from sparse observations. Pointwise confidence intervals for reconstructed trajectories are also provided. Methods are described in Mbaka, Cao and Carey (2026) <doi:10.48550/arXiv.2603.18833> and Mbaka and Carey (2026) <doi:10.48550/arXiv.2603.19799>.

Version: 0.2.2
Depends: R (≥ 2.10)
Imports: fda, pracma, Rcpp, Metrics
LinkingTo: Rcpp, RcppEigen
Published: 2026-05-08
DOI: 10.32614/CRAN.package.mGSFPCA (may not be active yet)
Author: Uche Mbaka ORCID iD [aut, cre], Michelle Carey ORCID iD [ctb]
Maintainer: Uche Mbaka <uche.mbaka at ucd.ie>
License: GPL (≥ 3)
NeedsCompilation: yes
Materials: README
CRAN checks: mGSFPCA results

Documentation:

Reference manual: mGSFPCA.html , mGSFPCA.pdf

Downloads:

Package source: mGSFPCA_0.2.2.tar.gz
Windows binaries: r-devel: mGSFPCA_0.2.2.zip, r-release: not available, r-oldrel: mGSFPCA_0.2.2.zip
macOS binaries: r-release (arm64): mGSFPCA_0.2.2.tgz, r-oldrel (arm64): mGSFPCA_0.2.2.tgz, r-release (x86_64): mGSFPCA_0.2.2.tgz, r-oldrel (x86_64): mGSFPCA_0.2.2.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mGSFPCA to link to this page.