View source: R/textmodel_wordfish.R
predict.textmodel_wordfish | R Documentation |
predict.textmodel_wordfish()
returns estimated document scores and
confidence intervals. The method is provided for consistency with other
textmodel_*()
methods, but does not currently allow prediction on
out-of-sample data.
## S3 method for class 'textmodel_wordfish'
predict(
object,
se.fit = FALSE,
interval = c("none", "confidence"),
level = 0.95,
...
)
## S3 method for class 'textmodel_wordfish'
coef(object, margin = c("both", "documents", "features"), ...)
coefficients.textmodel_wordfish(object, ...)
object |
a fitted wordfish model |
se.fit |
if |
interval |
type of confidence interval calculation |
level |
tolerance/confidence level for intervals |
... |
not used |
margin |
which margin of parameter estimates to return: both (in a list), or just document or feature parameters |
coef.textmodel_wordfish()
returns a matrix of estimated
parameters coefficients for the specified margin.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.