## S3 method for class 'topics':
summary( object, nwrd=5, tpk=NULL, ... )
Arguments
object
An output object from the topics function.
nwrd
The number of phrases to output for each topic.
tpk
Optional list of topics to summarize. Defaults to 1:x$K.
...
Unused arguments from other functions, for S3 compatibility.
Value
The function prints usage percentages (i.e. colMeans(omega)) along with the
top nwrd phrases by log odds for each topic in tpk. The
matrix of to nwrd phrases is returned invisibly.
Details
This summary orders phrases for each topic according to the log odds
$\log(\theta_{kj}/q_{j})$, where $q_j$ is the null-model probability estimate
$\sum_i x_{ij} / \sum_{i} m_i$. This natural ordering of term relevance can be used to
identify representative vocabulary for each topic.