by_strata_DocTopic: Estimate document-topic distribution by strata (for covariate...

View source: R/analysis_covariates.R

by_strata_DocTopicR Documentation

Estimate document-topic distribution by strata (for covariate models)

Description

Estimate document-topic distribution by strata (for covariate models)

Usage

by_strata_DocTopic(x, by_var, labels, by_values = NULL, ...)

Arguments

x

the output from the covariate keyATM model (see keyATM()).

by_var

character. The name of the variable to use.

labels

character. The labels for the values specified in by_var (ascending order).

by_values

numeric. Specific values for by_var, ordered from small to large. If it is not specified, all values in by_var will be used.

...

other arguments passed on to the predict.keyATM_output() function.

Value

strata_topicword object (a list).


keyATM documentation built on May 31, 2023, 6:27 p.m.