View source: R/transform_stm.R
transform_stm | R Documentation |
Refits a STM with a content-based covariate so that all document-level topic-proportions are estimated "as-treated". Also allows for calculation of the SR sufficient reduction and optional coarsening to reduce the dimension of the data, reduce noise, or apply other design rules (e.g. - to exclude words that occur in too few or too many documents).
transform_stm(mod, out, Z, calc.SR = FALSE, coarsen = FALSE, simplex = FALSE)
mod |
a fitted |
out |
the original call to the STM |
Z |
an indicator for treatment assignment |
calc.SR |
an indicator for returning the sufficient reduction. Default is TRUE. |
coarsen |
an indicator for returning the coarsened STM |
A bounded DFM
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.