Extract text model coefficients for documents and features, in a manner
similar to coef and coefficients. (coefficients
is an
alias for coef.)
coef.textmodel(object, ...)
object | a fitted or predicted text model object whose coefficients will be extracted |
---|---|
... | unused |
Returns a list of named numeric vectors with the following elements:
coef_feature
coefficients estimated for each feature
coef_feature_se
standard errors estimated for each feature-level point estimate
coef_document
coefficients estimated for each document
coef_document_se
standard errors estimated for each document-level point estimate
coef_document_offset
a document-level offset for applicable models
coef_feature_offset
a feature-level offset for applicable models
An element that is not applicable for a particular object class will be
NULL
, for instance coef_documents
has no meaning for a fitted
wordscores object.