Description Usage Arguments Value
Calculate recency and frequency statistics from session duration data
1 | calculateRecencyFrequency(sessDurData, runDate = Sys.Date())
|
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. |
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.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.