Extract the call that was used to fit the given lcModel object.
# S3 method for class 'lcModel'
getCall(x, ...)A call to latrend() with the necessary arguments and data.
Other lcModel functions:
clusterNames(),
clusterProportions(),
clusterSizes(),
clusterTrajectories(),
coef.lcModel(),
converged(),
deviance.lcModel(),
df.residual.lcModel(),
estimationTime(),
externalMetric(),
fitted.lcModel(),
fittedTrajectories(),
getLcMethod(),
ids(),
lcModel-class,
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()
data(latrendData)
method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
getCall(model)
#> latrend(method = lcMethodRandom(alpha = 10, center = function (x)
#> {
#> mean(x, na.rm = TRUE)
#> }, time = "Time", id = "Id", nClusters = 2, name = "random",
#> response = "Y"), data = latrendData, envir = NULL)