lcMethodFlexmix {latrend} | R Documentation |
Method interface to flexmix()
Description
Wrapper to the flexmix()
method from the flexmix
package.
Usage
lcMethodFlexmix(
formula,
formula.mb = ~1,
time = getOption("latrend.time"),
id = getOption("latrend.id"),
nClusters = 2,
...
)
Arguments
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. The following arguments are ignored: data, concomitant, k. |
References
GrĂ¼n B, Leisch F (2008). “FlexMix Version 2: Finite Mixtures with Concomitant Variables and Varying and Constant Parameters.” Journal of Statistical Software, 28(4), 1–35. doi:10.18637/jss.v028.i04.
See Also
Other lcMethod package interfaces:
lcMethodFlexmixGBTM
Examples
data(latrendData)
if (require("flexmix")) {
method <- lcMethodFlexmix(Y ~ Time, id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)
}
[Package latrend version 1.6.1 Index]