R/customerRetentionTransactions.R

#' Transactions Data for Customer Retention (Chapter 4)
#' @name customerRetentionTransactions
#' @docType data
#' @usage customerRetentionTransactions
#' @format Data frame with the following 7 variables
#' \describe{
#'   \item{\code{customer}}{customer number (from 1 to 500)}
#'   \item{\code{quarter}}{quarter (from 1 to 12) where the transactions occurred}
#'   \item{\code{purchase}}{1 when the customer purchased in the given quarter and 0 if no purchase occurred in that quarter}
#'   \item{\code{order_quantity}}{dollar value of the purchases in the given quarter}
#'   \item{\code{crossby}}{number of different categories purchased in a given quarter}
#'   \item{\code{ret_expense}}{dollars spent on marketing efforts to try and retain that customer in the given quarter}
#'   \item{\code{ret_expense_sq}}{square of dollars spent on marketing efforts to try and retain that customer in the given quarter}
#' }
#' @examples data(customerRetentionTransactions)
#' str(customerRetentionTransactions)
NULL

Try the SMCRM package in your browser

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

SMCRM documentation built on May 2, 2019, 2:46 p.m.