Learn R Programming

stm (version 1.0.8)

stm-package: Structural Topic Model

Description

This package implements the Structural Topic Model, a general approach to including document-level metadata within mixed-membership topic models. To read the vignette use vignette('stmVignette'). Functions to ingest and manipulate documents: textProcessor readCorpus prepDocuments Functions to fit the model: stm selectModel manyTopics Functions to summarize a model: labelTopics summary.STM findThoughts Functions for Post-Estimation: estimateEffect topicCorr permutationTest Plotting Functions: plot.STM plot.estimateEffect plot.topicCorr plot.STMpermute plotQuote plotTopicLoess plotModels topicQuality Pre-Fit Models and Data: gadarian gadarianFit poliblog5k

Arguments

References

Roberts, M., Stewart, B., Tingley, D., and Airoldi, E. (2013) "The structural topic model and applied social science." In Advances in Neural Information Processing Systems Workshop on Topic Models: Computation, Application, and Evaluation. http://goo.gl/uHkXAQ Roberts, M., Stewart, B., Tingley, D., Lucas, C., Leder-Luis, J., Gadarian, S., Albertson, B., Albertson, B. and Rand, D. (Forthcoming). "Structural topic models for open ended survey responses." American Journal of Political Science http://goo.gl/0x0tHJ

See Also

stm