get_td_beta: get the beta matrix from an stm topic model object

View source: R/get_td_beta.R

get_td_betaR Documentation

get the beta matrix from an stm topic model object

Description

get a broom::tidy matrix containing the probabiliies each word is generated from each topic

Usage

get_td_beta(topicModel)

Arguments

topicModel

the stm topic model from which to extract the beta matrix

Value

a tbl_df with columns "topic", "term", and "beta"

Examples

## Not run: 
data("tm_ex_dat")

get_td_beta(tm_ex_dat$topic_model_test)

## End(Not run)

tknoch8/topicHelpers documentation built on Nov. 11, 2023, 1:15 a.m.