-
Notifications
You must be signed in to change notification settings - Fork 4
/
predict.wordfish.Rd
44 lines (38 loc) · 1.26 KB
/
predict.wordfish.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/wordfish.R
\name{predict.wordfish}
\alias{predict.wordfish}
\title{Predict Method for Wordfish}
\usage{
\method{predict}{wordfish}(object, newdata = NULL, se.fit = FALSE,
interval = c("none", "confidence"), level = 0.95, ...)
}
\arguments{
\item{object}{A fitted wordfish model}
\item{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.}
\item{se.fit}{A switch indicating if standard errors are required.}
\item{interval}{Type of interval calculation}
\item{level}{Tolerance/confidence level}
\item{...}{further arguments passed to or from other methods.}
}
\value{
\code{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.
}
\description{
Predicts positions of new documents using a fitted Wordfish model
}
\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.
}
\author{
Will Lowe
}
\seealso{
\code{\link{wordfish}}
}