calculateComparisonData: Calculate the comparison data frame for a given session...

Description Usage Arguments Value

Description

Calculate the comparison data frame for a given session duration data set, for a given set of parameters, a session duration data set, and a run date.

Usage

1
calculateComparisonData(sessDurData, params, cutoffDate, problem = "churn")

Arguments

sessDurData

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

params

A numeric vector of parameters for the log likelihood function. (alpha, beta, gamma, delta)

cutoffDate

A numeric date id in the form yyyymmdd. All data after this date will be dropped. Must fall on a Monday

problem

The classification problem to solve: "churn" : Predict whether users are "alive" or "dead" at the cutoff date (default) "wau" : Predict whether users will use Gloo next week

Value

comparison_data A data.frame of the form (user_id, return_probability, showed_up). return_probability is the users' estimated return probability, and showed_up is an indicator of whether they actually showed up (1 = they showed up)


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