Plots terms that are more/less likely to appear in conversation across different topics.

calculate_wlos(df, topic_var, text_var = Message, top_n = 30)

Arguments

df

A dataframe.

topic_var

The variable that contains the topic label for each post.

text_var

The variable containing the text to be compared.

top_n

The maximum number of words to include for each topic in the visualisation.

Value

A table with weighted log-odds calculated for each word in each group, and a visualisation