| posterior | R Documentation |
posterior() returns the n x T matrix of posterior class-membership
probabilities used by a fitted model; classes() returns the modal
(most likely) class of each observation.
posterior(object, ...)
## S3 method for class 'tseLCA'
posterior(object, ...)
classes(object, ...)
## S3 method for class 'tseLCA'
classes(object, ...)
object |
A fitted |
... |
Further arguments (currently unused). |
posterior(): a numeric n x T matrix. classes(): an integer
vector of length n with values in 1..T.
d <- generate_data(200, "high", "covariate", seed = 1)
fit <- three_step(d, paste0("Y", 1:6), n_classes = 3,
Zp.names = "Zp", use.simple.cov = TRUE)
head(posterior(fit))
table(classes(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.