classic.wordscores: Old-Style Wordscores

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/classic.wordscores.R

Description

Construct a Wordscores model from reference document scores

Usage

1

Arguments

wfm

object of class wfm

scores

reference document positions/scores

Details

This version of Wordscores is exactly as described in Laver et al. 2003 and is provided for historical interest and continued replicability of older analyses.

scores is a vector of document scores corresponding to the documents in the word frequency matrix wfm. The function computes wordscores and returns a model from which virgin text scores can be predicted.

Value

An old-style Wordscores analysis.

Author(s)

Will Lowe

References

Laver, M. and Benoit, K. and Garry, J. (2003) 'Extracting policy positions from political texts using words as data' American Political Science Review. 97. pp.311-333

See Also

summary.classic.wordscores

Examples

1
2
3
4
5
6
data(lbg)
ref <- getdocs(lbg, 1:5)
ws <- classic.wordscores(ref, scores=seq(-1.5,1.5,by=0.75))
summary(ws)
vir <- getdocs(lbg, 'V1') 
predict(ws, newdata=vir)

austin documentation built on May 2, 2019, 5:48 p.m.