Learn R Programming

BTYDplus (version 0.7.2)

cdnow.sample: CDNow Sample Data

Description

This is a convenience wrapper for data('cdnowElog', package='BTYD'), with same-day transactions being merged together for each customer.

Usage

cdnow.sample(T.cal = "1997-09-30", T.tot = "1998-06-30")

Arguments

T.cal

Final date of calibration period.

T.tot

Final date of holdout period.

Value

List of length 2:

cbs

A data.frame with a row for each customer and the summary statistic as columns, generated with elog2cbs

elog

A data.frame with a row for each transaction, and columns cust, date, sales and cds.

References

Fader, Peter S. and Bruce G.,S. Hardie, (2001), 'Forecasting Repeat Sales at CDNOW: A Case Study,' Interfaces, 31 (May-June), Part 2 of 2, S94-S107.

See Also

elog2cbs

Examples

Run this code
# NOT RUN {
cdnow <- cdnow.sample()
head(cdnow$cbs)
head(cdnow$elog)
# }

Run the code above in your browser using DataLab