RTextTools: A Supervised Learning Package for Text Classification - Sciences Po Access content directly
Journal Articles The R Journal Year : 2013

RTextTools: A Supervised Learning Package for Text Classification

Timothy P. Jurka
  • Function : Author
Loren Collingwood
  • Function : Author
Amber E. Boydstun
  • Function : Author
van Atteveldt Wouter
  • Function : Author


Social scientists have long hand-labeled texts to create datasets useful for studying topics from congressional policymaking to media reporting. Many social scientists have begun to incorporate machine learning into their toolkits. RTextTools was designed to make machine learning accessible by providing a start-to-finish product in less than 10 steps. After installing RTextTools, the initial step is to generate a document term matrix. Second, a container object is created, which holds all the objects needed for further analysis. Third, users can use up to nine algorithms to train their data. Fourth, the data are classified. Fifth, the classification is summarized. Sixth, functions are available for performance evaluation. Seventh, ensemble agreement is conducted. Eighth, users can cross-validate their data. Finally, users write their data to a spreadsheet, allowing for further manual coding if required.
Fichier principal
Vignette du fichier
collingwood-jurka-boydstun-etal.pdf (135.87 Ko) Télécharger le fichier
Origin : Publisher files allowed on an open archive

Dates and versions

hal-02186524 , version 1 (17-07-2019)





Timothy P. Jurka, Loren Collingwood, Amber E. Boydstun, Emiliano Grossman, van Atteveldt Wouter. RTextTools: A Supervised Learning Package for Text Classification. The R Journal, 2013, 5 (1), pp.6-12. ⟨10.32614/rj-2013-001⟩. ⟨hal-02186524⟩
220 View
281 Download



Gmail Facebook X LinkedIn More