fpca_ssvd | R Documentation |
Implements the algorithm of Huang, Shen, Buja (2008) for finding smooth right
singular vectors of a matrix X
containing (contaminated) evaluations of
functional random variables on a regular, equidistant grid. If the number of
smooth SVs to extract is not specified, the function hazards a guess for the
appropriate number based on the asymptotically optimal truncation threshold
under the assumption of a low rank matrix contaminated with i.i.d. Gaussian
noise with unknown variance derived in Donoho, Gavish (2013). Please note that
Donoho, Gavish (2013) should be regarded as experimental for functional PCA,
and will typically not work well if you have more observations than grid
points.
fpca_ssvd( Y = NULL, argvals = NULL, npc = NA, center = TRUE, maxiter = 15, tol = 1e-04, diffpen = 3, gridsearch = TRUE, alphagrid = 1.5^(-20:40), lower.alpha = 1e-05, upper.alpha = 1e+07, integration = "trapezoidal" )
Y |
data matrix (rows: observations; columns: grid of eval. points) |
argvals |
the argument values of the function evaluations in |
npc |
how many smooth SVs to try to extract, if |
center |
center |
maxiter |
how many iterations of the power algorithm to perform at most (defaults to 15) |
tol |
convergence tolerance for power algorithm (defaults to 1e-4) |
diffpen |
difference penalty order controlling the desired smoothness of the right singular vectors, defaults to 3 (i.e., deviations from local quadratic polynomials). |
gridsearch |
use |
alphagrid |
grid of smoothing parameter values for grid search |
lower.alpha |
lower limit for for smoothing parameter if
|
upper.alpha |
upper limit for smoothing parameter if |
integration |
ignored, see Details. |
Fabian Scheipl
Huang, J. Z., Shen, H., and Buja, A. (2008). Functional principal components analysis via penalized rank one approximation. Electronic Journal of Statistics, 2, 678-695
Donoho, D.L., and Gavish, M. (2013). The Optimal Hard Threshold for Singular Values is 4/sqrt(3). eprint arXiv:1305.5870. Available from http://arxiv.org/abs/1305.5870.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.