Description Usage Arguments Details Value
.term_trends
takes a dataframe with term frequency time series as
returned by the term_frequencies()
function and fits a linear
regression for each term
.
1 | .term_trends(termFrequencies, trendThreshold = 5e-04)
|
termFrequencies |
a dataframe of |
trendThreshold |
a double used to categorise trends, default is
|
The primary purpose of this function is to provide a simple approach to
identify term
trends, which can be used for visualization, filtering
and exploratory analysis. Internally, the slope and intercept of the fitted
linear model are use to categorize a basic trend for the term frequencies.
a dataframe specifying trend metrics for each term
, where:
a unique term
the slope
coefficient of the linear model fit to this term
's time frequency
series
the residual standard deviation of the linear
model fit to this term
's time frequency series, which is used as a
basic measure of volatility of term frequencies
a
categorisation of the term frequency trend, negative slopes with an
intercept > mean term share + trendThreshold
are interpreted as
decreasing, positive slopes with an intercept < mean term
share - trendThreshold
as increasing, all others as
constant
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.