| qqPlot | R Documentation |
Plot the quantile-quantile (Q-Q) plot for the fitted lcModel object. This function is based on the qqplotr package.
## S4 method for signature 'lcModel' qqPlot(object, byCluster = FALSE, ...)
object |
The |
byCluster |
Whether to plot the Q-Q line per cluster |
... |
Additional arguments passed to |
A ggplot object.
residuals.lcModel metric plotClusterTrajectories
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(),
plotFittedTrajectories(),
postprob(),
predict.lcModel(),
predictAssignments(),
predictForCluster(),
predictPostprob(),
residuals.lcModel(),
sigma.lcModel(),
strip(),
time.lcModel(),
trajectoryAssignments()
data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)
if (require("ggplot2") && require("qqplotr")) {
qqPlot(model)
}