Learn R Programming

quanteda.textmodels (version 0.9.9)

coef.textmodel_ca: Extract model coefficients from a fitted textmodel_ca object

Description

coef() extract model coefficients from a fitted textmodel_ca object. coefficients() is an alias.

Usage

# S3 method for textmodel_ca
coef(object, doc_dim = 1, feat_dim = 1, ...)

coefficients.textmodel_ca(object, doc_dim = 1, feat_dim = 1, ...)

Value

a list containing numeric vectors of feature and document coordinates. Includes NA vectors of standard errors for consistency with other models' coefficient outputs, and for the possibility of having these computed in the future.

  • coef_feature column coordinates of the features

  • coef_feature_se feature length vector of NA values

  • coef_document row coordinates of the documents

  • coef_document_se document length vector of NA values

Arguments

object

a fitted textmodel_ca object

doc_dim, feat_dim

the document and feature dimension scores to be extracted

...

unused