module AttributionCreditSplit
Overview
Split revenue credit across the touchpoints of one won deal.
Defined in:
split.crConstant Summary
-
MODELS =
["first", "last", "linear", "u-shaped"] -
VERSION =
"1.0.0"
Class Method Summary
-
.split(model : String, revenue : Float64, touches : Array(String)) : Array(Tuple(String, Float64))
Credit per touch, then added up per channel in order of first appearance.
-
.weights(model : String, n : Int32) : Array(Float64)
Returns one weight per touch; the weights add up to 1.
Class Method Detail
def self.split(model : String, revenue : Float64, touches : Array(String)) : Array(Tuple(String, Float64))
#
Credit per touch, then added up per channel in order of first appearance.
def self.weights(model : String, n : Int32) : Array(Float64)
#
Returns one weight per touch; the weights add up to 1.