R/methodMixtoolsGMM.R
lcMethodMixtoolsGMM.Rd
Specify mixed mixture regression model using mixtools
Formula, including a random effects component for the trajectory. See lme4::lmer formula syntax.
The name of the time variable..
The name of the trajectory identifier variable.
The number of clusters.
Arguments passed to mixtools::regmixEM.mixed. The following arguments are ignored: data, y, x, w, k, addintercept.fixed, verb.
benaglia2009mixtoolslatrend
Other lcMethod implementations:
getArgumentDefaults()
,
getArgumentExclusions()
,
lcMethod-class
,
lcMethodAkmedoids
,
lcMethodCrimCV
,
lcMethodDtwclust
,
lcMethodFeature
,
lcMethodFunFEM
,
lcMethodFunction
,
lcMethodGCKM
,
lcMethodKML
,
lcMethodLMKM
,
lcMethodLcmmGBTM
,
lcMethodLcmmGMM
,
lcMethodMclustLLPA
,
lcMethodMixAK_GLMM
,
lcMethodMixtoolsNPRM
,
lcMethodRandom
,
lcMethodStratify
# \donttest{
data(latrendData)
if (require("mixtools")) {
method <- lcMethodMixtoolsGMM(
formula = Y ~ Time + (1 | Id),
id = "Id", time = "Time",
nClusters = 3,
arb.R = FALSE
)
}
#> Loading required package: mixtools
#> mixtools package, version 2.0.0, Released 2022-12-04
#> This package is based upon work supported by the National Science Foundation under Grant No. SES-0518772 and the Chan Zuckerberg Initiative: Essential Open Source Software for Science (Grant No. 2020-255193).
#>
#> Attaching package: ‘mixtools’
#> The following object is masked from ‘package:mclust’:
#>
#> dmvnorm
# }