Skip to content

An integrated framework for textual sentiment time series aggregation and prediction

Notifications You must be signed in to change notification settings

keblu/sentometrics

 
 

Repository files navigation

sentometrics

An Integrated Framework for Textual Sentiment Time Series Aggregation and Prediction

Build Status CRAN DownloadsDownloads Pending Pull-Requests Github Issues

Introduction

The sentometrics package is designed to do time series analysis based on textual sentiment. Put differently, it is an integrated framework for textual sentiment time series aggregation and prediction. It accounts for the intrinsic challenge that, for a given text, sentiment can be computed in many different ways, as well as the large number of possibilities to pool sentiment across texts and time. This additional layer of manipulation does not exist in standard text mining and time series analysis packages. As a final outcome, the package provides an automated means to econometrically model the impact of sentiment in texts on a given variable, by first computing a wide range of textual sentiment time series and then selecting those that are most informative. The package created therefore integrates the qualification of sentiment from texts, the aggregation into different sentiment measures and the optimized prediction based on these measures.

The package implements the main methodology developed in the paper "Questioning the news about economic growth: Sparse forecasting using thousands of news-based sentiment values" (Ardia, Bluteau and Boudt, 2017). See the vignette for an introduction to the package. In future releases, the package will be expanded in multiple directions while further improving its present setting.

Installation

To install the package from CRAN, simply do:

install.packages("sentometrics")

The latest development version of sentometrics is available at https://github.com/sborms/sentometrics. To install this version (which may contain bugs!), execute:

devtools::install_github("sborms/sentometrics")

References

Please cite sentometrics in publications. Use citation("sentometrics").

Acknowledgements

This software package originates from a Google Summer of Code 2017 project.

About

An integrated framework for textual sentiment time series aggregation and prediction

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 98.7%
  • C++ 1.3%