Predict textmodel_wordscores
# S3 method for textmodel_wordscores predict(object, newdata = NULL, se.fit = FALSE, interval = c("none", "confidence"), level = 0.95, rescaling = c("none", "lbg", "mv"), include_reftexts = TRUE, ...)
object | a fitted Wordscores textmodel |
---|---|
newdata | dfm on which prediction should be made |
se.fit | if |
interval | type of confidence interval calculation |
level | tolerance/confidence level for intervals |
rescaling |
|
include_reftexts | if |
... | not used |
textmodel_wordscores()
returns a list that is also classed as a
textmodel_wordscores
object, containing the following elements:
the scores computed for each word in the training set (\(S_{wd}\) from Laver, Benoit and Garry 2003)
either linear
or logit
, according to the value of scale
the dfm on which the wordscores model was called
the vector of document reference values
the function call that fitted the model