approx models have defined cluster trajectories at fixed moments in time, which should be interpolated For a correct implementation, lcApproxModel requires the extending class to implement clusterTrajectories(at=NULL) to return the fixed cluster trajectories
# S3 method for lcApproxModel
fitted(object, ..., clusters = trajectoryAssignments(object))# S3 method for lcApproxModel
predict(object, ..., newdata = NULL, what = "mu", approxFun = approx)
The lcModel
object.
Additional arguments.
Optional cluster assignments per id. If unspecified, a matrix
is returned containing the cluster-specific predictions per column.
Optional data frame for which to compute the model predictions. If omitted, the model training data is used. Cluster trajectory predictions are made when ids are not specified. If the clusters are specified under the Cluster column, output is given only for the specified cluster. Otherwise, a matrix is returned with predictions for all clusters.
The distributional parameter to predict. By default, the mean response 'mu' is predicted. The cluster membership predictions can be obtained by specifying what='mb'.
The interpolation function to use for time points not in the feature set.