EstimateIncremental: Estimates the difference of a metric between the test and...

Description Usage Arguments Value Note

View source: R/estimateincremental.R

Description

Estimates the difference of a metric between the test and counterfactual between the pre and the post periods.

Usage

1
2
3
4
5
EstimateIncremental(obj, ...)

## S3 method for class 'GBRROASAnalysisData'
EstimateIncremental(obj,
  variable = c("response", "cost"), ...)

Arguments

obj

an object.

...

further arguments passed to or from other methods.

variable

(string) 'response' or 'cost'.

Value

A vector of (adjusted) incremental values, of length nrow(obj).

Note

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.


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