Description Usage Format Examples
Customer Churn Data from Chapter 6
1 |
Data frame with the following 11 variables
customer
customer number (from 1 to 500)
duration
time in days that the acquired prospect has been or was a customer, right-censored at 730 days
censor
1 if the customer was still a customer at the end of the observation window, 0 otherwise
avg_ret_exp
average number of dollars spent on marketing efforts to try and retain that customer per month
avg_ret_exp_sq
square of the average number of dollars spent on marketing efforts to try and retain that customer per month
total_crossbuy
total number of categories the customer has purchased during the customer's lifetime
total_freq
total number of purchase occasions the customer had with the firm in the customer's lifetime
total_freq_sq
square of the total number of purchase occasions the customer had with the firm in the customer's lifetime
industry
1 if the customer is in the B2B industry, 0 otherwise
revenue
annual sales revenue of the prospect's firm (in millions of dollar)
employees
number of employees in the prospect's firm
1 2 |
'data.frame': 500 obs. of 11 variables:
$ customer : num 1 2 3 4 5 6 7 8 9 10 ...
$ duration : num 500 730 730 340 730 408 730 272 432 119 ...
$ censor : num 0 1 1 0 1 0 1 0 0 0 ...
$ avg_ret_exp : num 89.6 49.9 40.7 85.8 31.9 ...
$ avg_ret_exp_sq: num 8030 2489 1656 7355 1018 ...
$ industry : num 1 0 0 0 0 1 0 1 1 0 ...
$ revenue : num 30.2 39.8 54.9 45.8 69 ...
$ employees : num 1240 166 1016 122 313 ...
$ total_crossbuy: num 6 6 2 2 1 3 6 3 2 4 ...
$ total_freq : num 16 10 14 15 9 12 20 19 17 14 ...
$ total_freq_sq : num 256 100 196 225 81 144 400 361 289 196 ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.