This function is also responsible for checking whether the input data is valid, such that the fitting process can fail early.
transformFitted(pred, model, clusters)# S4 method for `NULL`,lcModel
transformFitted(pred, model, clusters)
# S4 method for matrix,lcModel
transformFitted(pred, model, clusters)
# S4 method for list,lcModel
transformFitted(pred, model, clusters)
# S4 method for data.frame,lcModel
transformFitted(pred, model, clusters)
Prediction object
The model from which the prediction is made.
Optional argument for specifying the trajectory cluster assignments.
A vector
if the clusters
argument is specified, else a matrix
with the fitted values per cluster per column.