gen_q_besty: The best combination of a set of predictive models.

Usage Arguments Examples

View source: R/AzzortiAnalysis.R

Usage

1
gen_q_besty(df_base, campana)

Arguments

df_base

The data must be constituted as follows:

campana

Selected campaign

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## simulated data
DF_TOTAL <- data.frame(CODI_CAMP = 202004,
                      NOMB_LINE = "RE ROPA EXTERIOR",
                      CODI_VENT = ceiling(runif(100,100000,999999)),
                      DESCRIPCION = paste0("P",c(1:100)),
                      REAL = 1000+(1:100)*10,
                      Q_RG3 = abs(1000+(1:100)*10 + rnorm(100,300,800)),
                      Q_MKT = abs(1000+(1:100)*10 + rnorm(100,100,700)),
                      Q_30 = abs(1000+(1:100)*10 + rnorm(100,400,700)),
                      Q_50 = abs(1000+(1:100)*10 + rnorm(100,450,900)),
                      Q_70 = abs(1000+(1:100)*10 + rnorm(100,700,900))
)

#BESTY
DF_TOTAL<- gen_q_besty(DF_TOTAL)

PaulLulo/AzzortiPackage documentation built on March 28, 2020, 12:55 a.m.