Function used in the FPCA step for registering functional data,
called by register_fpca
when family = "gaussian"
.
Parameters estimated based on probabilistic PCA framework originally
introduced by Tipping and Bishop in 1999.
fpca_gauss(
Y,
npc = 1,
Kt = 8,
maxiter = 20,
t_min = NULL,
t_max = NULL,
print.iter = FALSE,
row_obj = NULL,
seed = 1988,
...
)
An object of class fpca
containing:
Cutpoints for B-spline basis used to rebuild alpha
.
\(D \times npc\) matrix of estimated FPC basis functions.
Estimated variance of the FPC scores.
number of FPCs.
\(I \times npc\) matrix of estimated FPC scores.
Estimated population-level mean.
Estimated population-level mean. Same value as alpha
but included for compatibility
with refund.shiny
package.
B-spline basis coefficients used to construct subject-specific means.
For use in registr()
function.
FPC approximation of subject-specific means.
The observed data.
gaussian
, for compatibility with refund.shiny
package.
Estimated error variance
Dataframe. Should have variables id, value, index.
Defaults to 1. Number of principal components to calculate.
Number of B-spline basis functions used to estimate mean functions. Default is 8.
Maximum number of iterations to perform for EM algorithm. Default is 50.
Minimum value to be evaluated on the time domain.
Maximum value to be evaluated on the time domain.
Prints current error and iteration
If NULL, the function cleans the data and calculates row indices.
Keep this NULL if you are using standalone register
function.
Set seed for reproducibility. Default is 1991.
Additional arguments passed to or from other functions
Julia Wrobel jw3134@cumc.columbia.edu, Jeff Goldsmith ajg2202@cumc.columbia.edu
Tipping, M. E. and Bishop, C (1999). Probabilistic Principal Component Analysis. Journal of the Royal Statistical Society Series B,, 592--598.