Inputs raw data representing two curves, applies penalized B-spline
smoothing to the two curves, and computes the curve correlation between
them via a call to cor.ct.
ccor(y, time, curve = NULL, k = 15, min.overlap = 0, min.n = 8)A list with components
the supplied y and time
models for the two curves, outputted by gam
functional data objects (see fd) for the two curves
estimated curve correlation
either a vector or a two-column matrix, without missing values; see Details
a vector of time points
curve indicator; see Details
number of B-spline basis functions
minimum overlap of the two curves' time ranges
minimum number of observations per curve
Philip Tzvi Reiss <reiss@stat.haifa.ac.il>, Noemi Foa, Dror Arbiv and Biplab Paul <paul.biplab497@gmail.com>
If y is a two-column matrix, the two curves are observed at the time points given by
time; in this case length(time) must equal nrow(y), and curve is
ignored. If y is a vector, it must have the same length as both time and curve.
In this case y contains the observations on both curves, while elements of time and curve
identify the observation time and the curve being observed, respectively.
cor.ct, b.spline