adstock: Simple Adstock.

Description Usage Arguments

View source: R/adstock.R

Description

Adstocks one variable, returns a numeric vector.

Usage

1
adstock(x, adstock.rate)

Arguments

adstock.rate

Rate to adstock the variable, between 0 and 1.

data

data.table that holds the variable to be transformed

variable

Character string of the variable to be transformed


Braja93/braja documentation built on June 1, 2017, 5:19 p.m.