calc_lda_r2: Calculate R-squared for a tidylda Model
Description
Formats inputs and hands off to calc_rsquared
Usage
calc_lda_r2(dtm, theta, beta, threads)
Value
Numeric scalar between negative infinity and 1
Arguments
- dtm
must be of class dgCMatrix
- theta
a theta matrix
- beta
a beta matrix
- threads
number of parallel threads