View source: R/methodMixAK_GLMM.R
| lcMethodMixAK_GLMM | R Documentation |
Specify a GLMM iwht a normal mixture in the random effects
lcMethodMixAK_GLMM(
fixed,
random,
time = getOption("latrend.time"),
id = getOption("latrend.id"),
nClusters = 2,
...
)
fixed |
A |
random |
A |
time |
The name of the time variable. |
id |
The name of the trajectory identifier variable. This is used to generate the |
nClusters |
The number of clusters. |
... |
Arguments passed to mixAK::GLMM_MCMC. The following external arguments are ignored: y, x, z, random.intercept, silent. |
This method currently does not appear to work under R 4.2 due to an error triggered by the mixAK package during fitting.
komarek2009newlatrend
Other lcMethod implementations:
getArgumentDefaults(),
getArgumentExclusions(),
lcMethod-class,
lcMethodAkmedoids,
lcMethodCrimCV,
lcMethodDtwclust,
lcMethodFeature,
lcMethodFunFEM,
lcMethodFunction,
lcMethodGCKM,
lcMethodKML,
lcMethodLMKM,
lcMethodLcmmGBTM,
lcMethodLcmmGMM,
lcMethodMclustLLPA,
lcMethodMixtoolsGMM,
lcMethodMixtoolsNPRM,
lcMethodRandom,
lcMethodStratify
data(latrendData)
# this example only runs when the mixAK package is installed
try({
method <- lcMethodMixAK_GLMM(fixed = Y ~ 1, random = ~ Time,
id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)
summary(model)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.