Cluster longitudinal data for a list of model specifications
Fit a list of longitudinal cluster methods.
latrendBatch(
methods,
data,
cartesian = TRUE,
parallel = FALSE,
errorHandling = "stop",
envir = NULL,
verbose = getOption("latrend.verbose")
)methods |
A |
data |
A |
cartesian |
Whether to fit the provided methods on each of the datasets. If |
parallel |
Whether to enable parallel evaluation. See latrend-parallel. |
errorHandling |
Whether to |
envir |
The |
verbose |
The level of verbosity. Either an object of class |
A lcModels object.
lcMethods
Other longitudinal cluster fit functions:
latrendBoot(),
latrendCV(),
latrendRep(),
latrend()
data(latrendData)
methods <- lcMethods(lcMethodKML("Y", id = "Id", time = "Time"), nClusters = 1:3)
models <- latrendBatch(methods, data = latrendData)
models <- latrendBatch(lcMethods(lcMethodKML("Y", id = "Id", time = "Time"), nClusters = 1:2),
data = .(subset(latrendData, Time > .5),
subset(latrendData, Time < .5))) # different data per methodPlease choose more modern alternatives, such as Google Chrome or Mozilla Firefox.