View source: R/methodFlexmixGBTM.R
lcMethodFlexmixGBTM | R Documentation |
Fits a GBTM based on the flexmix::FLXMRglm driver.
lcMethodFlexmixGBTM(
formula,
formula.mb = ~1,
time = getOption("latrend.time"),
id = getOption("latrend.id"),
nClusters = 2,
...
)
formula |
A |
formula.mb |
A |
time |
The name of the time variable. |
id |
The name of the trajectory identifier variable. |
nClusters |
The number of clusters to estimate. |
... |
Arguments passed to flexmix::flexmix or flexmix::FLXMRglm. The following arguments are ignored: data, k, trace. |
gruen2008flexmixlatrend
Other lcMethod package interfaces:
lcMethodFlexmix
data(latrendData)
if (require("flexmix")) {
method <- lcMethodFlexmixGBTM(Y ~ Time, id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.