Learn R Programming

stylest2 (version 0.1)

term_influence: Internal stylest2 function to return the influence of each term in predicting authorship.

Description

Internal stylest2 function to return the influence of each term in predicting authorship.

Usage

term_influence(pred_docs_dfm, eta_tv, model)

Arguments

pred_docs_dfm

A document-feature matrix for the texts to be predicted.

eta_tv

The author-level term weights from a stylest2 model.

model

A stylest2 model.