ttm_lda: Fit LDA and Extract Topic Proportions
Description
Fits a Latent Dirichlet Allocation model to the text and returns the
person-specific topic proportion matrix (delta).
Usage
ttm_lda(text_vector, k, seed = 1234)
Value
A matrix of dimension N x K containing topic proportions (delta).
Arguments
- text_vector
A character vector of aggregated student responses.
- k
The number of latent topics.
- seed
Integer seed for reproducibility.