SetSpendChange: Sets the spend change in a geo experiment for simulation...

Description Usage Arguments Value Note

Description

Sets the spend change in a geo experiment for simulation purposes.

Usage

1
2
3
4
5
SetSpendChange(obj, prop.to, periods = "all") <- value

## S3 replacement method for class 'GeoExperimentData'
SetSpendChange(obj, prop.to, periods = "all") <-
  value

Arguments

obj

an object with the column 'assignment'.

prop.to

(existing) name of the column in proportion to which the spend change will be spread across the geos.

periods

numbers of the periods which are affected; if this is "all", all periods are affected and the spend change will be spread across all periods that have spend change (determined by the column assignment).

value

the total absolute value of the spend change. Can also be NA, in the case of which the spend change column will be reset to NA.

Value

The object, with the modified spend change column .spend.

Note

Creates a column .spend. The spend change type is determined by the assignment column. The absolute value of the spend change will be spread across geos in the proportion of the given column (prop.to); the sign of the change is determined by the type of change: for treatment assignments set to 'decrease', the sign will be negative, otherwise positive.


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