Description Usage Arguments Details Examples
View source: R/promotion_impact.R
detectOutliers
1 2 3 4 5 | detectOutliers(
model,
threshold = list(cooks.distance = 1, dfbetas = 1, dffits = 2),
option = 2
)
|
model |
Execution result object : promotionImpact |
threshold |
List of threshold values to be determined as outliers if greater than the written values |
option |
The number of indicators that must be greater than the threshold values to be outliers. |
detectOutliers extracts outliers which affect the average effects of promotions.
1 2 3 4 5 6 7 | pri1 <- promotionImpact(data=sim.data, promotion=sim.promotion,
time.field = 'dt', target.field = 'simulated_sales',
trend = FALSE, period = NULL, structural.change = FALSE,
logged = TRUE, differencing = TRUE, synergy.promotion = FALSE,
synergy.var = NULL, allow.missing = TRUE)
out <- detectOutliers(model = pri1,
threshold = list(cooks.distance=1, dfbetas=1, dffits=2), option = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.