predict.wordfish: Predict Method for Wordfish

Description Usage Arguments Details Value Author(s) See Also

View source: R/wordfish.R

Description

Predicts positions of new documents using a fitted Wordfish model

Usage

1
2
3
4
## S3 method for class 'wordfish'
predict(object, newdata=NULL, se.fit=FALSE,
                 interval=c("none", "confidence"),
                 level=0.95, ...)

Arguments

object

A fitted wordfish model

newdata

An optional data frame or object of class wfm in which to look for word counts to predict document ideal points which to predict. If omitted, the fitted values are used.

se.fit

A switch indicating if standard errors are required.

interval

Type of interval calculation

level

Tolerance/confidence level

...

further arguments passed to or from other methods.

Details

Standard errors for document positions are generated by numerically inverting the relevant Hessians from the profile likelihood of the multinomial form of the model.

Value

predict.wordfish produces a vector of predictions or a matrix of predictions and bounds with column names ‘fit’ and ‘se.fit’, and with ‘lwr’, and ‘upr’ if ‘interval’ is also set.

Author(s)

Will Lowe

See Also

wordfish


austin documentation built on May 31, 2017, 3:59 a.m.

Search within the austin package
Search all R packages, documentation and source code