Learn R Programming

ChannelAttribution (version 1.1)

heuristic_models: Heuristic models for the online attribution problem

Description

Estimate theree heuristic models (first-touch, last-touch, linear) from customer journey data.

Usage

heuristic_models(Dy, var_channel, var_conv, var_value)

Arguments

Dy
data.frame containing paths and conversions.
var_channel
name of the the column containing paths.
var_conv
name of the column containing total conversions.
var_value
name of the column containing total conversion value.

Value

  • An object of class data.frame with the estimated number of conversions and the estimated conversion value attributed to each channel for each model.

Examples

Run this code
data(PathData) 

heuristic_models(Dy, "channel_path", "total_conversions", "total_conversion_value")

Run the code above in your browser using DataLab