| compare_mmm | R Documentation |
Compare MMM fits across different k
compare_mmm(data, k = 2:5, ...)
data |
Data frame, netobject, or tna model. |
k |
Integer vector of component counts. Default: 2:5. |
... |
Arguments passed to |
A mmm_compare data frame with BIC, AIC, ICL, AvePP,
entropy per k.
seqs <- data.frame(V1 = sample(c("A","B","C"), 30, TRUE),
V2 = sample(c("A","B","C"), 30, TRUE))
comp <- compare_mmm(seqs, k = 2:3, n_starts = 1, max_iter = 10, seed = 1)
comp
seqs <- data.frame(
V1 = sample(LETTERS[1:3], 30, TRUE), V2 = sample(LETTERS[1:3], 30, TRUE),
V3 = sample(LETTERS[1:3], 30, TRUE), V4 = sample(LETTERS[1:3], 30, TRUE)
)
comp <- compare_mmm(seqs, k = 2:3, seed = 42)
print(comp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.