lda.fit: Estimate a topic model using the lda package

Description Usage Arguments Value

Description

Estimate an LDA topic model using the LDA function The parameters other than dtm are simply passed to the sampler but provide a workable default. See the description of that function for more information

Usage

1
2
lda.fit(dtm, method = "Gibbs", K = 50, num.iterations = 500,
  alpha = 50/K, eta = 0.01, burnin = 250)

Arguments

dtm

a document term matrix (e.g. the output of amcat.dtm.create)

K

the number of clusters

num.iterations

the number of iterations

alpha

the alpha parameter

eta

the eta parameter

Value

A fitted LDA model (see LDA)


kasperwelbers/corpus-tools documentation built on May 20, 2019, 7:37 a.m.