textmodel_lsa-postestimation: Post-estimations methods for textmodel_lsa

textmodel_lsa-postestimationR Documentation

Post-estimations methods for textmodel_lsa

Description

Post-estimation methods for fitted textmodel_lsa objects.

Usage

## S3 method for class 'textmodel_lsa'
predict(object, newdata = NULL, ...)

## S3 method for class 'textmodel_lsa'
as.dfm(x)

## S3 method for class 'textmodel_lsa'
coef(object, doc_dim = 1, feat_dim = 1, ...)

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

Arguments

object, x

previously fitted textmodel_lsa object

newdata

new matrix to be transformed into the lsa space

...

unused

doc_dim, feat_dim

the document and feature dimension scores to be extracted

Value

predict() returns a predicted textmodel_lsa object, projecting the patterns onto new data.

coef.textmodel_lsa extracts model coefficients from a fitted textmodel_ca object.


quanteda.textmodels documentation built on Sept. 11, 2024, 8:19 p.m.