qqPlot {latrend} | R Documentation |
Quantile-quantile plot
Description
Plot the quantile-quantile (Q-Q) plot for the fitted lcModel
object. This function is based on the qqplotr package.
Usage
qqPlot(model, byCluster = FALSE, ...)
Arguments
model |
|
byCluster |
Whether to plot the Q-Q line per cluster |
... |
Additional arguments passed to residuals.lcModel, |
Value
A ggplot
object.
See Also
residuals.lcModel metric plotClusterTrajectories
Other lcModel functions:
clusterNames()
,
clusterProportions()
,
clusterSizes()
,
clusterTrajectories()
,
coef.lcModel()
,
converged()
,
deviance.lcModel()
,
df.residual.lcModel()
,
estimationTime()
,
externalMetric()
,
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()
Examples
data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)
if (require("ggplot2") && require("qqplotr")) {
qqPlot(model)
}