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

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).