get_prob: Get the probability a Yelp review is positive.

Description Usage Arguments Value

Description

Get the probability a Yelp review is positive.

Usage

1

Arguments

data

A tibble of Yelp reviews pre-processed with prepare_yelp() that has a column for mean AFINN score, the number of buts/nots, and each review's word-length quintile.

model_coefs

An optional tibble containing different model parameters.

Value

The original data with new columns for the log-odds and probability that each review is positive.


chris31415926535/yelpredict documentation built on Jan. 7, 2021, 9:34 p.m.