AppendAgg: Calculate the total and test market's aggregated KPI by time...

View source: R/auxiliary.R

AppendAggR Documentation

Calculate the total and test market's aggregated KPI by time and location.

Description

[Stable]

Append the aggregated KPI values for the test market and all markets to the GeoDataRead object.

Usage

AppendAgg(data, locs = NULL)

Arguments

data

A data.frame containing the historical conversions by geographic unit. It requires a "locations" column with the geo name, a "Y" column with the outcome data (units), a time column with the indicator of the time period (starting at 1), and covariates.

locs

list of test locations. If none are provided, only the aggregated KPI (total) will be calculated and appended. Set to NULL by default.

Value

A data frame with additional values for the test regions (combined_test) and total KPI (total).


facebookincubator/GeoLift documentation built on May 31, 2024, 10:09 a.m.