Description Usage Arguments Details Value
.topic_trends
takes a dataframe with a topic frequency time series as
returned by the topic_frequencies
function and fits a linear
regression for each topic
(identified by topic_id
).
1 | .topic_trends(topicFrequencies, trendThreshold = 5e-04)
|
topicFrequencies |
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
classify topic
s by a general trend, 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 topic frequencies.
a dataframe specifying trend metrics for each topic
, where:
a topic identifier
the slope
coefficient of the linear model fit to this topic
's time frequency
series
the residual standard deviation of the linear
model fit to this topic
's time frequency series, which is used as a
basic measure of volatility of topic frequencies
a
categorisation of the topic frequency trend, negative slopes with an
intercept > mean topic share + trendThreshold
are interpreted as
decreasing, positive slopes with an intercept < mean topic
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.