Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

posterior-methods

Determine posterior probabilities


Description

Determine the posterior probabilities of the topics for each document and of the terms for each topic for a fitted topic model.

Usage

## S4 method for signature 'TopicModel,missing'
posterior(object, newdata, ...)
## S4 method for signature 'TopicModel,ANY'
posterior(object, newdata, control = list(), ...)

Arguments

object

An object of class "TopicModel".

newdata

If missing the posteriors for the original observations are returned.

control

A named list of the control parameters for estimation or a suitable control object.

...

Currently not used.

Author(s)

Bettina Gruen


topicmodels

Topic Models

v0.2-12
GPL-2
Authors
Bettina Grün [aut, cre] (<https://orcid.org/0000-0001-7265-4773>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>), David M Blei [ctb, cph] (VEM estimation of LDA and CTM), John D Lafferty [ctb, cph] (VEM estimation of CTM), Xuan-Hieu Phan [ctb, cph] (MCMC estimation of LDA), Makoto Matsumoto [ctb, cph] (Mersenne Twister RNG), Takuji Nishimura [ctb, cph] (Mersenne Twister RNG), Shawn Cokus [ctb] (Mersenne Twister RNG)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.