sentometrics1.0.0 package

An Integrated Framework for Textual Sentiment Time Series Aggregation and Prediction

add_features

Add feature columns to a (sento_)corpus object

aggregate.sentiment

Aggregate textual sentiment across sentences, documents and time

aggregate.sento_measures

Aggregate sentiment measures

as.data.table.sento_measures

Get the sentiment measures

as.sentiment

Convert a sentiment table to a sentiment object

as.sento_corpus

Convert a quanteda or tm corpus object into a sento_corpus object

attributions

Retrieve top-down model sentiment attributions

compute_sentiment

Compute textual sentiment across features and lexicons

corpus_summarize

Summarize the sento_corpus object

ctr_agg

Set up control for aggregation into sentiment measures

ctr_model

Set up control for sentiment-based sparse regression modeling

data-defunct

Datasets with defunct names

diff.sento_measures

Differencing of sentiment measures

get_dates

Get the dates of the sentiment measures/time series

get_dimensions

Get the dimensions of the sentiment measures

get_hows

Options supported to perform aggregation into sentiment measures

get_loss_data

Retrieve loss data from a selection of models

measures_fill

Add and fill missing dates to sentiment measures

measures_update

Update sentiment measures

merge.sentiment

Merge sentiment objects horizontally and/or vertically

nmeasures

Get number of sentiment measures

nobs.sento_measures

Get number of observations in the sentiment measures

peakdates

Extract dates related to sentiment time series peaks

peakdocs

Extract documents related to sentiment peaks

plot.attributions

Plot prediction attributions at specified level

plot.sento_measures

Plot sentiment measures

plot.sento_modelIter

Plot iterative predictions versus realized values

predict.sento_model

Make predictions from a sento_model object

scale.sento_measures

Scaling and centering of sentiment measures

sento_corpus

Create a sento_corpus object

sento_lexicons

Set up lexicons (and valence word list) for use in sentiment analysis

sento_measures

One-way road towards a sento_measures object

sento_model

Optimized and automated sentiment-based sparse regression

sentometrics-defunct

Defunct functions

sentometrics-deprecated

Deprecated functions

sentometrics-package

sentometrics: An Integrated Framework for Textual Sentiment Time Serie...

subset.sento_measures

Subset sentiment measures

weights_almon

Compute Almon polynomials

weights_beta

Compute Beta weighting curves

weights_exponential

Compute exponential weighting curves

Optimized prediction based on textual sentiment, accounting for the intrinsic challenge that sentiment can be computed and pooled across texts and time in various ways. See Ardia et al. (2021) <doi:10.18637/jss.v099.i02>.

  • Maintainer: Samuel Borms
  • License: GPL (>= 2)
  • Last published: 2021-08-18