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)
The variable that contains the topic label for each post.
The variable containing the text to be compared.
The maximum number of words to include for each topic in the visualisation.
A table with weighted log-odds calculated for each word in each group, and a visualisation