Description Usage Arguments Value Note
Sets the spend change in a geo experiment for simulation purposes.
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
|
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
|
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. |
The object, with the modified spend change column .spend
.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.