Cluster longitudinal data repeatedly
Performs a repeated fit of the specified latrend model on the given data.
latrendRep(
method,
data,
.rep = 10,
...,
.errorHandling = "stop",
.seed = NULL,
.parallel = FALSE,
envir = NULL,
verbose = getOption("latrend.verbose")
)method |
The |
data |
The |
.rep |
The number of repeated fits. |
... |
Any other arguments to update the |
.errorHandling |
Whether to |
.seed |
Set the seed for generating the respective seed for each of the repeated fits. |
.parallel |
Whether to use parallel evaluation. See latrend-parallel. |
envir |
The |
verbose |
The level of verbosity. Either an object of class |
This method is faster than repeatedly calling latrend as it only prepares the data via prepareData() once.
A lcModels object containing the resulting models.
Other longitudinal cluster fit functions:
latrendBatch(),
latrendBoot(),
latrendCV(),
latrend()
data(latrendData)
method <- lcMethodKML("Y", id = "Id", time = "Time")
models <- latrendRep(method, data = latrendData, .rep = 5) # 5 repeated runs
models <- latrendRep(method, data = latrendData, .seed = 1, .rep = 3)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.