View source: R/methodLcmmGBTM.R
lcMethodLcmmGBTM | R Documentation |
Group-based trajectory modeling through fixed-effects modeling.
lcMethodLcmmGBTM(
fixed,
mixture = ~1,
classmb = ~1,
time = getOption("latrend.time"),
id = getOption("latrend.id"),
nClusters = 2,
init = "default",
...
)
fixed |
The fixed effects formula. |
mixture |
The mixture-specific effects formula. See lcmm::hlme for details. |
classmb |
The cluster membership formula for the multinomial logistic model. See lcmm::hlme for details. |
time |
The name of the time variable. |
id |
The name of the trajectory identifier variable. This replaces the |
nClusters |
The number of clusters to fit. This replaces the |
init |
Alternative for the
The argument is ignored if the |
... |
Arguments passed to lcmm::hlme. The following arguments are ignored: data, fixed, random, mixture, subject, classmb, returndata, ng, verbose, subset. |
proustlima2017estimationlatrend
\insertRefproustlima2019lcmmlatrend
Other lcMethod implementations:
getArgumentDefaults()
,
getArgumentExclusions()
,
lcMethod-class
,
lcMethodAkmedoids
,
lcMethodCrimCV
,
lcMethodDtwclust
,
lcMethodFeature
,
lcMethodFunFEM
,
lcMethodFunction
,
lcMethodGCKM
,
lcMethodKML
,
lcMethodLMKM
,
lcMethodLcmmGMM
,
lcMethodMclustLLPA
,
lcMethodMixAK_GLMM
,
lcMethodMixtoolsGMM
,
lcMethodMixtoolsNPRM
,
lcMethodRandom
,
lcMethodStratify
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
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.