SetIncrementalResponse: Sets an incremental response for simulation purposes.

Description Usage Arguments Value Note

Description

Sets an incremental response for simulation purposes.

Usage

1
2
3
4
5
SetIncrementalResponse(obj, response, periods = "all") <- value

## S3 replacement method for class 'GeoExperimentData'
SetIncrementalResponse(obj, response,
  periods = "all") <- value

Arguments

obj

an object with the column '.spend'.

response

(string) name of the column which acts as the response metric.

periods

numbers of the periods which are affected; if this is "all", all periods are affected.

value

the absolute value of the incremental return on ad spend. Can also be negative. Can also be NA, in the case of which the column .response will be reset to NA.

Value

The object, with the modfied spend change column .response.

Note

Creates a column .response if it does not exist, and registers it as a metric. The column .response contains the baseline response and the incremental response, which is defined as the specified incremental ROAS ('value') times the column '.spend'.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.