limit_test_markets | R Documentation |
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.
limit_test_markets(
similarity_matrix,
treatment_sizes,
run_stochastic_process = FALSE
)
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. |
Returns the limited number of treatment sizes if required. If the condition is not met, it returns the original treatment sizes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.