R/estimate_covariance.R
covariance_ss.Rd
This function performs the estimation of the covariance of a set of curves using smoothing splines.
covariance_ss(curves, grid, nbasis = 5, center = TRUE, nodiag = TRUE)
list, where each element represents a curve. Each curve have to be defined as a list with two entries:
$t Sampling points
$x Observed points.
Vector, sampling points at which estimate the covariance.
Integer (default = 5), number of basis to use for the splines.
Boolean (default = TRUE), center the data?
Boolean (default = TRUE), should the diagonal be removed from the fitting of the model?
Matrix representing the covariance surface.
Cai, T., Yuan, M. (2010) - Nonparametric covariance function estimation for functional and longitudinal data. University of Pennsylvania and Georgia institute of technology