R/analysis_covariates.R
by_strata_DocTopic.RdEstimate document-topic distribution by strata (for covariate models)
by_strata_DocTopic(x, by_var, labels, by_values = NULL, ...)the output from the covariate keyATM model (see keyATM()).
character. The name of the variable to use.
character. The labels for the values specified in by_var (ascending order).
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.
strata_topicword object (a list).