View source: R/GetCovSurface.R
| GetCovSurface | R Documentation | 
Covariance surface estimation for dense or sparse functional data.
GetCovSurface(Ly, Lt, optns = list())
| Ly | A list of n vectors containing the observed values for each individual. Missing values specified by  | 
| Lt | A list of n vectors containing the observation time points for each individual corresponding to y. Each vector should be sorted in ascending order. | 
| optns | A list of options control parameters specified by  Available control options are 
 | 
A list containing the following fields:
| cov | A square matrix of size nWorkGrid containing the covariance surface estimate. | 
| sigma2 | A numeric estimate of the variance of measurement error. | 
| workGrid | A vector of length nWorkGrid. The internal regular grid on which the covariance surface estimation is carried out. | 
| bwCov | The selected (or user specified) bandwidth for smoothing thecovariance surface. | 
| optns | A list of actually-used options relevant to the covariance surface calculation. | 
set.seed(1)
n <- 20
pts <- seq(0, 1, by=0.025)
sampWiener <- Wiener(n, pts)
mu = sin(2*pi*pts)
sampWiener <- Sparsify(t(t(sampWiener) + mu), pts, 10)
res = GetCovSurface(Ly = sampWiener$Ly, Lt = sampWiener$Lt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.