CalculateSampleROAS: Calculate ROAS from a pair of datasets.

Description Usage Arguments Value

Description

Calculate the ROAS estimated from a sample of datasets generated from two budget settings

Usage

1

Arguments

dt1

data.table of data generated from the first budget setting. The data.table must include "revenue" and "total.spend" columns, and have the different datasets indexed by column "rep.index."

dt2

data.table of data generated from the second budget setting. The data.table must include "revenue" and "total.spend" columns, and have the different datasets indexed by column "rep.index." the number of unique values of "rep.index" in dt1 and dt2 should match.

Value

vector of ROAS estimates from each pair of sample datasets in dt1 and dt2.


google/amss documentation built on May 20, 2019, 5:05 p.m.