Description Usage Arguments Value
View source: R/get_topic_prevalence_by_covariate.R
This function returns a data table with the mean topic prevalence for each level of a character or factor covariate.
1 | get_topic_prevalence_by_covariate(stm_model, by_what, data)
|
stm_model |
An object of class STM. |
A data table whose first column contains the levels of the covariate and subsequent columns give the average topic prevalence of each topic in documents at each level of the covariate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.