stylest_odds: Pairwise prediction of the most likely speaker of texts

Description Usage Arguments Value Examples

View source: R/stylest_speaker_odds.R

Description

Computes the mean log odds of the most likely speaker of each text over pairs of the speaker of a text and every other speaker in the stylest_model.

Usage

1
stylest_odds(model, text, speaker, prior = NULL)

Arguments

model

stylest_model object

text

Text vector. May be a corpus_frame object

speaker

Vector of speaker labels. Should be the same length as x

prior

Prior probability of speakers. Uses equal prior if NULL

Value

A S3 stylest_odds object containing: a stylest_model object; vector of mean log odds that each actual speaker (compared with other speakers in the corpus) spoke their corresponding texts in the corpus; vector of SEs of the log odds

Examples

1
2
3
4

stylest documentation built on March 5, 2021, 1:05 a.m.