| summary.net_mmm | R Documentation |
Summary Method for net_mmm
## S3 method for class 'net_mmm'
summary(object, ...)
object |
A |
... |
Unsupported. Supplying unused arguments raises an error. |
A per-component summary data.frame. The class and visibility
depend on whether the model was fitted with covariates:
A plain data.frame with one row per
component and columns component, prior,
n_assigned, mean_posterior, avepp, returned
visibly (so it auto-prints after the printed summary block).
A tidy_covariates/data.frame
(the tidied covariate table, with the per-component stats attached),
returned invisibly.
In both cases the printed summary (model fit, per-cluster transition matrices, optional covariate profiles) is emitted as a side effect.
seqs <- data.frame(V1 = sample(c("A","B","C"), 30, TRUE),
V2 = sample(c("A","B","C"), 30, TRUE))
mmm <- build_mmm(seqs, k = 2, n_starts = 1, max_iter = 10, seed = 1)
summary(mmm)
set.seed(1)
seqs <- data.frame(
V1 = sample(c("A","B","C"), 30, TRUE),
V2 = sample(c("A","B","C"), 30, TRUE),
V3 = sample(c("A","B","C"), 30, TRUE)
)
mmm <- build_mmm(seqs, k = 2, n_starts = 5, seed = 1)
summary(mmm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.