Description Usage Arguments Details Value See Also Examples
This function computes the partial sum estimate of the covariance function in functional data analysis. It also generate the eigenvalues and eigenfunctions of the parial sum estimate, along with the coefficient matrix of the estimated covariance function.
1 | partial_cov(fdobj, x = NULL)
|
fdobj |
A functional data object of class ' |
x |
Fraction of the sample size that the partial sum is computed. This input must be in (0,1]. The default is |
This function simply estimates the covariance function based on the partial sum of the centered functional observations.
The length of the sum is determined by x
, and when x=1
this estimate corresponds to the regular covariance function
estimates using the whole sample.
|
Eigenvalues of the partial sum estimate of the covariance function |
|
Eigenfunctions of the partial sum estimate of the covariance function |
|
Coefficient matrix of the partial sum estimate of the covariance function |
1 2 3 4 5 6 7 8 9 10 | library(fda)
# generate functional data
fdata = fun_IID(n=100, nbasis=21)
# Estimated eigenvalues
e1 = partial_cov(fdata)$eigen_val
e2 = pca.fd(fdata, nharm = 21, centerfns = TRUE)$values
# e1 and e2 will both estimate the eigenvalues of the covariance
# operator based on the whole sample
# estimates using only 90% of the data
Cov = partial_cov(fdata, 0.9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.