limit_test_markets: Limit the amount of test market potential elements.

View source: R/auxiliary.R

limit_test_marketsR Documentation

Limit the amount of test market potential elements.

Description

[Stable]

limit_test_markets determines if the user would like to find combinations of treatments that is higher than half the total amount of locations available while running a random assignment of locations. If this is the case, it will cap the treatment sizes at half the total amount of locations.

Usage

limit_test_markets(
  similarity_matrix,
  treatment_sizes,
  run_stochastic_process = FALSE
)

Arguments

similarity_matrix

Matrix that sorts each location in terms of descending correlation.

treatment_sizes

Vector of number of test markets to calculate power for.

run_stochastic_process

A logic flag indicating whether to select test markets through random sampling of the the similarity matrix. Given that interpolation biases may be relevant if the synthetic control matches the characteristics of the test unit by averaging away large discrepancies between the characteristics of the test and the units in the synthetic controls, it is recommended to only use random sampling after making sure all units are similar. Set to FALSE by default.

Value

Returns the limited number of treatment sizes if required. If the condition is not met, it returns the original treatment sizes.


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