data(latrendData)
if (rlang::is_installed("lcmm")) {
method <- lcMethodLcmmGBTM(
fixed = Y ~ Time,
mixture = ~ 1,
id = "Id",
time = "Time",
nClusters = 3
)
gbtm <- latrend(method, data = latrendData)
summary(gbtm)
method <- lcMethodLcmmGBTM(
fixed = Y ~ Time,
mixture = ~ Time,
id = "Id",
time = "Time",
nClusters = 3
)
}
Run the code above in your browser using DataLab