Description Usage Arguments Value Note
View source: R/estimateincremental.R
Estimates the difference of a metric between the test and counterfactual between the pre and the post periods.
1 2 3 4 5 | EstimateIncremental(obj, ...)
## S3 method for class 'GBRROASAnalysisData'
EstimateIncremental(obj,
variable = c("response", "cost"), ...)
|
obj |
an object. |
... |
further arguments passed to or from other methods. |
variable |
(string) 'response' or 'cost'. |
A vector of (adjusted) incremental values, of length
nrow(obj)
.
The incremental metric (response or cost) is calculated as the difference between the actual observed metric and the counterfactual during the test period. The counterfactual is defined as the prediction of the metric, using a model that uses only the control geos as the training data set. The incremental cost is defined to be zero for the control geos. In case there is not enough data to model the counterfactual (happens when all pre-test data are constant, usually zero), the counterfactual is defined to be simply the metric during the pre-test period.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.