| ccor | R Documentation |
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)
y |
either a vector or a two-column matrix, without missing values; see Details |
time |
a vector of time points |
curve |
curve indicator; see Details |
k |
number of B-spline basis functions |
min.overlap |
minimum overlap of the two curves' time ranges |
min.n |
minimum number of observations per curve |
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.
A list with components
y, time |
the supplied |
mod1, mod2 |
models for the two curves, outputted by |
fd1, fd2 |
functional data objects (see |
estcor |
estimated curve correlation |
Philip Tzvi Reiss <reiss@stat.haifa.ac.il>, Noemi Foa, Dror Arbiv and Biplab Paul <paul.biplab497@gmail.com>
cor.ct, b.spline
# see example for ccor_posim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.