calculateRecencyFrequency: Calculate recency and frequency statistics from session...

Description Usage Arguments Value

Description

Calculate recency and frequency statistics from session duration data

Usage

1
calculateRecencyFrequency(sessDurData, runDate = Sys.Date())

Arguments

sessDurData

A data.frame of the form (user_id, active_week_start_date) that gives the weeks in which each user was active.

runDate

A numeric date id in the form yyyymmdd. All data after this date will be dropped.

Value

A data.frame of the form (user_id, x, n, m). Here, x represents the number of repeat transactions made by the user, n represents the number of repeat transaction opportunities that the user had, and m represents the index of the most recent transaction. (M is also called t_x in the literature.)


johnchower/gloobtyd documentation built on May 19, 2019, 3:03 p.m.