textmodel_lsa-postestimation: Post-estimations methods for textmodel_lsa

Description Usage Arguments Value

Description

Post-estimation methods for fitted textmodel_lsa objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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/quanteda documentation built on Feb. 16, 2019, 5:45 a.m.