Get the lcMethod specification that was used for fitting the given object.
getLcMethod(object, ...)
# S4 method for class 'lcModel'
getLcMethod(object)An lcMethod object.
Other lcModel functions:
clusterNames(),
clusterProportions(),
clusterSizes(),
clusterTrajectories(),
coef.lcModel(),
converged(),
deviance.lcModel(),
df.residual.lcModel(),
estimationTime(),
externalMetric(),
fitted.lcModel(),
fittedTrajectories(),
getCall.lcModel(),
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()
method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
getLcMethod(model)
#> lcMethodRandom specifying "random"
#> alpha: 10
#> center: function (x) { mean(x, na.rm = TRUE)}
#> time: "Time"
#> id: "Id"
#> nClusters: 2
#> name: "random"
#> response: "Y"