Learn R Programming

edgar (version 1.0.4)

PolarityHist: Creates polarity histogram of word frequency dataframe of 10-K statement.

Description

PolarityHist creates polarity histogram of word frequency dataframe of 10-K statement.

Usage

PolarityHist(word.frq)

Arguments

word.frq
Word frequency dataframe created using GetWordfrquency function.

Value

Function creates polarity histogram.

Details

PolarityHist function takes words frequency dataframe as an input from GetWordfrquency function. It compares this words frequency dataframe with the negative and positive words mentioned in the Loughran and McDonald's financial sentiment dictionaries and generates polarity histogram with their frequencies.

References

Loughran and McDonald's financial Sentiment dictionaries http://www3.nd.edu/~mcdonald/Word_Lists.html

Bill McDonald, and Tim Loughran. Measuring Readability in Financial Disclosures. Journal of Finance: Volume 69, Issue 4, August 2014

Bill McDonald, and Tim Loughran. When Is a Liability Not a Liability? Textual Analysis, Dictionaries, and 10-Ks. Journal of Finance: Volume 66, Issue 1, February 2011

Examples

Run this code
## Not run: 
# 
# PolarityHist(word.frq)
# ## End(Not run)

Run the code above in your browser using DataLab