Package: stylest2
Title: Estimating Speakers of Texts
Version: 0.1
Authors@R: c(person("Christian", "Baehr", role = c("aut", "cre", "cph"), email="cbaehr@princeton.edu"),
		person("Arthur", "Spirling", role=c("aut", "cph")),
		person("Leslie", "Huang", role=c("aut")))
Description: Estimates the authors or speakers of texts. Methods developed in Huang, Perry, and Spirling (2020) <doi:10.1017/pan.2019.49>. The model is built on a Bayesian framework in which the distinctiveness of each speaker is defined by how different, on average, the speaker's terms are to everyone else in the corpus of texts. An optional cross-validation method is implemented to select the subset of terms that generate the most accurate speaker predictions. Once a set of terms is selected, the model can be estimated. Speaker distinctiveness and term influence can be recovered from parameters in the model using package functions. Once fitted, the model can be used to predict authorship of new texts.
Depends: R (>= 4.2),
License: GPL-3
Imports: Matrix, quanteda
Suggests: devtools, knitr, rmarkdown, testthat
Collate: 'stylest2_select_vocab.R' 'stylest2_fit.R'
        'stylest2_predict.R' 'data.R' 'stylest2.R'
Encoding: UTF-8
VignetteBuilder: knitr, rmarkdown
RoxygenNote: 7.3.1
NeedsCompilation: no
Packaged: 2024-03-22 15:51:08 UTC; christianbaehr
Author: Christian Baehr [aut, cre, cph],
  Arthur Spirling [aut, cph],
  Leslie Huang [aut]
Maintainer: Christian Baehr <cbaehr@princeton.edu>
Repository: CRAN
Date/Publication: 2024-03-23 10:50:06 UTC
Built: R 4.6.0; ; 2026-04-26 04:59:06 UTC; unix
