Description Usage Arguments Value Examples
Given raw text and a textreg model, predict the labeling by counting appearance of relevant phrases in text and then multiplying these counts by the beta vector associated with the textreg object. Just like linear regression.
1 2 3 |
object |
A textreg.result object |
new.text |
If you want to predict for new text, pass it along. |
return.matrix |
TRUE means hand back the phrase appearance pattern matrix. |
... |
Nothing can be passed extra. |
Vector of predictions (numbers).
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.