MakeFPCAInputs: Format FPCA input
Description
Turn vector inputs to the list so they can be used in FPCAUsage
MakeFPCAInputs(IDs = NULL, tVec, yVec, na.rm = FALSE)
Arguments
IDs
n-by-1 vector of subject IDs (Default: NULL)
tVec
n-by-1 vector of measurement times
yVec
n-by-1 vector of measurements from the variable of interest
na.rm
logical indicating if NA should be omitted (Default: FALSE)
Value
- L list containing 3 lists each of length 'm', 'm' being the number of unique subject IDs