MarketCorrelations: Get within market correlations for all locations.

View source: R/auxiliary.R

MarketCorrelationsR Documentation

Get within market correlations for all locations.

Description

[Stable]

MarketCorrelations calculates a notion of similarity between markets to help inform the combinations of treatments.

Usage

MarketCorrelations(data)

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.

Value

A Dataframe where each column represents the closest market to the market in the first column, ordering them by their correlation factor.


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