This archive is distributed in association with the INFORMS Journal on Computing under the MIT License.
To cite the contents of this repository, please cite both the paper and this repo, using their respective DOIs.
https://doi.org/10.1287/ijoc.2022.0037
https://doi.org/10.1287/ijoc.2022.0037.cd
Below is the BibTex for citing this snapshot of the repository.
@article{LiuLi2023,
author = {Xiaoping Liu and Xiao-Bai Li},
publisher = {INFORMS Journal on Computing},
title = {Cost-Effective Acquisition of First-Party Data for Business Analytics},
year = {2023},
doi = {10.1287/ijoc.2022.0037.cd},
url = {https://github.com/INFORMSJoC/2022.0037},
}
-
Our programs are written in R and run in RStudio. RStudio must be installed in order to run our programs.
-
Also, install the following R packages before running our programs:
nloptr
dplyr
rpart
openxlsx2
reshape2
- Data files are included in the same folder along with the relevant code files.
Open the folder named ‘music’ and run the R files in the following order:
music_DA_base01.R
music_DA_base02.R
music_DA_base03.R
music_DA_05.R
(which outputs an Excel file with the results for Figure 1)
music_DA_10.R
(which outputs an Excel file with the results for Figure 2)
Open the folder named ‘blackfriday’ and run the R files in the following order:
Friday_DA_base01.R
Friday_DA_base02.R
Friday_DA_base03.R
Friday_DA_05.R
(which outputs an Excel file with the results for Figure 3)
Friday_DA_10.R
(which outputs an Excel file with the results for Figure 4)
For more updated info, please check https://github.com/Xiaopingliu2023/ijoc02