run_stm: Run STM analysis

Description Usage Arguments

View source: R/run_stm.R

Description

Run STM analysis and save output to aid interpretation.

Usage

1
2
run_stm(input_file, output_dir, k, split_docs = FALSE,
  representative_docs = TRUE)

Arguments

input_file

Path to file containing objects created by function create_stm_input.

output_dir

Path to directory in which to save model output.

k

Number of topics for STM analysis.

split_docs

Logical indicating whether documents have been split into 3,000 word chunks, in which case a flag will be added as a prevalence covariate to indicate which chunks come from the same full document.

representative_docs

If TRUE (the default), save full texts of most representative documents. If FALSE, save only a list of titles of the most representative documents.


dtburk/gensci.stm documentation built on Nov. 13, 2019, 12:33 a.m.