lcModel-class {latrend} | R Documentation |
lcModel
class
Description
Abstract class for defining estimated longitudinal cluster models.
Arguments
object |
The |
... |
Any additional arguments. |
Details
An extending class must implement the following methods to ensure basic functionality:
-
predict.lcModelExt
: Used to obtain the fitted cluster trajectories and trajectories. -
postprob(lcModelExt)
: The posterior probability matrix is used to determine the cluster assignments of the trajectories.
For predicting the posterior probability for unseen data, the predictPostprob()
should be implemented.
Slots
method
The lcMethod-class object specifying the arguments under which the model was fitted.
call
The
call
that was used to create thislcModel
object. Typically, this is the call tolatrend()
or any of the other fitting functions.model
An arbitrary underlying model representation.
data
A
data.frame
object, or an expression to resolves to thedata.frame
object.date
The date-time when the model estimation was initiated.
id
The name of the trajectory identifier column.
time
The name of the time variable.
response
The name of the response variable.
label
The label assigned to this model.
ids
The trajectory identifier values the model was fitted on.
times
The exact times on which the model has been trained
clusterNames
The names of the clusters.
estimationTime
The time, in seconds, that it took to fit the model.
tag
An arbitrary user-specified data structure. This slot may be accessed and updated directly.
See Also
Other lcModel functions:
clusterNames()
,
clusterProportions()
,
clusterSizes()
,
clusterTrajectories()
,
coef.lcModel()
,
converged()
,
deviance.lcModel()
,
df.residual.lcModel()
,
estimationTime()
,
externalMetric()
,
fitted.lcModel()
,
fittedTrajectories()
,
getCall.lcModel()
,
getLcMethod()
,
ids()
,
metric()
,
model.frame.lcModel()
,
nClusters()
,
nIds()
,
nobs.lcModel()
,
plot-lcModel-method
,
plotClusterTrajectories()
,
plotFittedTrajectories()
,
postprob()
,
predict.lcModel()
,
predictAssignments()
,
predictForCluster()
,
predictPostprob()
,
qqPlot()
,
residuals.lcModel()
,
sigma.lcModel()
,
strip()
,
time.lcModel()
,
trajectoryAssignments()