Just a minor addition to automatically de-duplicate when creating FPCA inputs. Values at duplicated time-points are replaced by their arithmetic mean.
So for example if we have tVec = c(1,2,3,4,4,10); yVec = c(1,2,3,4,5,6) we will automatically get tVec = c(1,2,3,4,10); yVec = c(1,2,3,4.5,6).
Just a minor addition to automatically de-duplicate when creating FPCA inputs. Values at duplicated time-points are replaced by their arithmetic mean. So for example if we have
tVec = c(1,2,3,4,4,10); yVec = c(1,2,3,4,5,6)
we will automatically gettVec = c(1,2,3,4,10); yVec = c(1,2,3,4.5,6)
.