plotFittedTrajectories: Plot fitted trajectories of a lcModel

plotFittedTrajectoriesR Documentation

Plot fitted trajectories of a lcModel

Description

Plot fitted trajectories of a lcModel

Usage

## S4 method for signature 'lcModel'
plotFittedTrajectories(object, ...)

Arguments

object

The lcModel object.

...

Arguments passed on to trajectories

id

The identifier variable name.

time

The time variable name.

response

The response variable name.

See Also

fittedTrajectories plotClusterTrajectories plotTrajectories plot

Other lcModel functions: clusterNames(), clusterProportions(), clusterSizes(), clusterTrajectories(), coef.lcModel(), converged(), deviance.lcModel(), df.residual.lcModel(), estimationTime(), externalMetric,lcModel,lcModel-method, fitted.lcModel(), fittedTrajectories(), getCall.lcModel(), getLcMethod(), ids(), lcModel-class, metric(), model.frame.lcModel(), nClusters(), nIds(), nobs.lcModel(), plot-lcModel-method, plotClusterTrajectories(), postprob(), predict.lcModel(), predictAssignments(), predictForCluster(), predictPostprob(), qqPlot(), residuals.lcModel(), sigma.lcModel(), strip(), time.lcModel(), trajectoryAssignments()

Examples

data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, latrendData, nClusters = 3)

if (require("ggplot2")) {
  plotFittedTrajectories(model)
}

latrend documentation built on March 31, 2023, 5:45 p.m.