Description Usage Arguments Value Source
ExpAgendaVonmon
implements bayesian hierarchical
topic model for texts from Grimmer (2010).
1 2 3 |
obj |
an EADTMatrix class object created by
|
term.doc |
matrix. Suppose that there are D
total documents and w words. |
authors |
matrix. If there are n total actors
whose attention to issues you would like to measure.
|
n.cats |
numeric. Sets the number of components (topics) in the mixture model. The default is 10. |
kappa |
numeric. Distribution's dispersion [CHECK]. |
verbose |
logical. Whether or not to print out each iteration. |
A ExpAgendaOut
object. The object contains five
elements: thetas
, mus
, rs
,
alpha
, and authorID
. thetas
are
[FILL IN]. mus
are location on the unit hyperspace
where the vMF distribution reaches its mode for each stem
[CHECK]. rs
are the probability of document
j from author i being from topic k.
alphas
are the prior distributions of the topics.
authorID
is used for DocTopics
to
return the documents their their original order.
Grimmer, J. (2010). A Bayesian Hierarchical Topic Model for Political Texts: Measuring Expressed Agendas in Senate Press Releases. Political Analysis, 18, 1-35. http://pan.oxfordjournals.org/content/18/1/1.short.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.