posterior-methods: Determine posterior probabilities

Description Usage Arguments Author(s)

Description

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

Usage

1
2
3
4
## 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 documentation built on May 30, 2017, 5:16 a.m.

Search within the topicmodels package
Search all R packages, documentation and source code