get_topic_prevalence_by_covariate: Topic Prevalence by Covariate

Description Usage Arguments Value

View source: R/get_topic_prevalence_by_covariate.R

Description

This function returns a data table with the mean topic prevalence for each level of a character or factor covariate.

Usage

1

Arguments

stm_model

An object of class STM.

Value

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.


dtburk/texanaaid documentation built on Nov. 12, 2019, 9:44 p.m.