I have a dataset which looks like this:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float P str10 order_date str2(id a) 1 "2019-10-11" "1" "20" 1 "2019-10-11" "2" "30" 1 "2019-10-11" "3" "34" 1 "2019-10-11" "4" "12" 1 "2019-10-11" "5" "23" 1 "2019-10-11" "6" "34" 1 "2019-10-11" "7" "45" 1 "2019-10-12" "2" "30" 1 "2019-10-12" "4" "12" 1 "2019-10-12" "5" "23" end
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float P str10 order_date str2(id a) 1 "2019-10-11" "1" "20" 1 "2019-10-11" "2" "30" 1 "2019-10-11" "3" "34" 1 "2019-10-11" "4" "12" 1 "2019-10-11" "5" "23" 1 "2019-10-11" "6" "34" 1 "2019-10-11" "7" "45" 0 "2019-10-12" "1" "20" 1 "2019-10-12" "2" "30" 0 "2019-10-12" "3" "34" 1 "2019-10-12" "4" "12" 1 "2019-10-12" "5" "23" 0 "2019-10-12" "6" "34" 0 "2019-10-12" "7" "45" end
0 Response to How to create balanced dataset from unbalanced dataset
Post a Comment