R/data.R

#' Polynomial pre-trained fit
#'
#' This calculates the polynomial projection of the simple features used during model training
#'
#' @format A pre-trained polynomial equation
#'
"polymodel"


#' Pre-trained advice concreteness features
#'
#' For internal use only. This dataset demonstrates the ngram features that are used for the pre-trained models.
#'
#' @format A (truncated) matrix of ngram feature counts for alignment to the pre-trained glmnet models.
#' @source Yeomans et al., (2024). A Natural Language Processing Model for Conflict Expression in Conversation
#'
"diceNGrams"


#' Purchase offers for phone
#'
#' A dataset containing the purchase offer message and a
#' label indicating if the writer was assigned to be warm (1) or tough (0)
#' @format A data frame with 355 rows and 2 variables:
#' \describe{
#'   \item{message}{character of purchase offer message}
#'   \item{condition}{binary label indicating if message is warm or tough}
#' }
#' @source Jeong, M., Minson, J., Yeomans, M. & Gino, F. (2019).
#'
#' "Communicating Warmth in Distributed Negotiations is Surprisingly Ineffective."
#'
#' Study 1. \url{https://osf.io/t7sd6/}
"phone_offers"


#' UK to US Conversion dictionary
#'
#' For internal use only. This dataset contains a quanteda dictionary for converting UK words to US words. The models in this package were all trained on US English.
#'
#' @format A quanteda dictionary with named entries. Names are the US version, and entries are the UK version.
#' @source Borrowed from the quanteda.dictionaries package on github (from user kbenoit)
#'
"uk2us"

Try the DICEM package in your browser

Any scripts or data that you put into this service are public.

DICEM documentation built on Sept. 12, 2024, 7:42 a.m.