MultiCellPower | R Documentation |
MultiCellPower
performs a Power-Analysis for a given set of Market Selections
obtained from MultiCellMarketSelection
.
MultiCellPower(
x,
test_markets = list(),
effect_size = seq(-0.25, 0.25, 0.05),
lookback_window = NULL,
side_of_test = NULL,
conformal_type = "iid",
ns = 1000
)
## S3 method for class 'MultiCellPower'
print(x, ...)
## S3 method for class 'MultiCellPower'
plot(
x,
actual_values = TRUE,
smoothed_values = FALSE,
show_mde = TRUE,
breaks_x_axis = 10,
stacked = TRUE,
...
)
x |
|
test_markets |
List of market IDs per cell. The list must contain exactly
k numeric values corresponding to the power analysis. The list's layout must be:
|
effect_size |
A vector of effect sizes to test by default a sequence between 0 - 25 percent in 5 percent increments: seq(0,0.25,0.05). Make sure that the sequence includes zero. |
lookback_window |
A number indicating how far back in time the simulations for the power analysis should go. For instance, a value equal to 5 will simulate power for the last five possible tests. By default lookback_window = 1 which will only execute the most recent test based on the data. |
side_of_test |
A string indicating whether confidence will be determined
using a one sided or a two sided test. If set to NULL (default), the
|
conformal_type |
Type of conformal inference used. Can be either "iid" for Independent and identically distributed or "block" for moving block permutations. Set to "iid" by default. |
ns |
Number of resamples for "iid" permutations if |
... |
additional arguments |
actual_values |
Logic flag indicating whether to include in the plot the actual values. TRUE by default. |
smoothed_values |
Logic flag indicating whether to include in the plot the smoothed values. TRUE by default. |
show_mde |
Logic flag indicating whether to include in the plot the positive and negative MDEs. FALSE by default. |
breaks_x_axis |
Numeric value indicating the number of breaks in the
x-axis of the power plot. You may get slightly more or fewer breaks that
requested based on |
stacked |
Logic flag indicating whether to stack all the Multi-Cell plots together vertically or to output each one of them separately. Set to TRUE by default. |
A 'MultiCellPower' object with three objects:
"PowerCurves": List containing the Power Curves for each cell.
"data": The input data.
"test_details": The test details.
MultiCellPower output message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.