Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides topic modeling of survey and experimental text with STM, LDA, or BERTopic, covering model choice and preprocessing.
64% 80%+16 ptsof test cases passed
Passed 20 of 25 test cases with the skill, and 16 of 25 without it.
3 of 3 safety checks passed
Not used yet
text-classification skill).stm, use plotRemoved() to visualize how many documents and terms are dropped across candidate thresholds before committing to one, then pass it to prepDocuments(). Report the threshold chosen and the counts of terms and documents retained.prevalence = ~ treatment + country (Roberts et al. 2014). For experimental applications, pre-register the prevalence-covariate hypotheses (see the companion pre-registration-writing skill) so that estimateEffect() outputs are confirmatory rather than exploratory by default (Nosek et al. 2018).sageLabels() and interpret with care (Roberts, Stewart & Tingley 2014; 2019).init.type = "Spectral") for reproducibility. Spectral initialization is deterministic on a given machine/BLAS configuration, unlike random initialization which requires multiple runs; cross-machine numerical precision can still produce minor differences, so record the hardware/OS when sharing replication materials (Roberts, Stewart & Tingley 2019).stm package version and R session info for DA-RT-compliant replication.stm, searchK() sweeps over K and returns all four diagnostics at once; selectModel() fits multiple initializations at a fixed K and returns the coherence-exclusivity frontier (useful when spectral initialization is not being used).stm package reports FREX, a weighted harmonic mean of frequency and exclusivity ranks (default weight ω = 0.7). The coherence-FREX frontier identifies models that balance both (Roberts, Stewart & Tingley 2019).findThoughts() or equivalent. Do not interpret topics from word lists alone — the documents provide essential context.Next to this one in the catalogue, plus more from the same author.