Learn R Programming

BTYDplus (version 0.6.3)

elog2cbs: Faster implementation of BTYD::dc.ElogToCbsCbt that also returns summary statistic for estimating regularity

Description

Returns data.frame with cust: customer id (unique key) x: nr of recurring events in calibration period t.x: time between first and last event in calibration period litt: sum of logarithmic intertransaction timings durint calibration period this is a summary statistic for estimating regularity T.cal: time between first event and end of calibration period T.star: length of holdout period x.star: nr of events within holdout period

Usage

elog2cbs(elog, per = "week", T.cal = max(elog$date),
  T.tot = max(elog$date))

Arguments

elog

data.frame with columns 'cust' and 'date'

per

time unit, either 'week', 'day', 'hour', 'min', 'sec'

T.cal

end date of calibration period

T.tot

end date of holdout period

Value

data.frame