Hi,
I would like to maximize the "item_price" (the variable of interest) of each "item". Each item appears in different "pack" with different quantity ("qty"). Here is the data that I have (small sample):
The ultimate goal is to populate the "item_price" variable such that "qty * item_price" = "pack_price".
I have tried to use the command optimize init() but I could not make it run. Here is the help link:
http://www.stata.com/manuals13/m-5optimize.pdf
I have been struggling with this issue for a while. If you need any clarification/ additional information, I am more than happy to bring them. Help would be highly appreciated. Thanks!
I would like to maximize the "item_price" (the variable of interest) of each "item". Each item appears in different "pack" with different quantity ("qty"). Here is the data that I have (small sample):
Code:
pack item qty item_price pack_price SNESYSA02E 1220-10 1 10 SNESYSA02E 1220-11 1 10 SNESYSA02E 220101091X .0567 10 SNESYSA02E 300204 1 10 SNESYSA02E 302008 2 10 SNESYSA02E 36004814 1 10 SNESYSA02E 47394 2 10 SNESYSA02E 48012 1 10 SNESYSA02E 49279WH 1 10 SNESYSA02E 50346A 4 10 SNESYSA02E 8004000 1 10 SNESYSA02E 8004002 1 10 SNESYSA02E 8337A-BULK 1 10 SNESYSA01I 49279WH 1 12 SNESYSA01I 500.11.014 1 12 SNESYSA01I 50346A 2 12 SNESYSA01I 53784 1 12 SNESYSA01I 8004000 1 12 SNESYSA01I 8004002 1 12 SNESYSA01I 8337A-BULK 1 12 SNESYSA01I 8475-BULK 2 12 SNESYSA01I 8520ZD-BULK 4 12 SNESYSA01I 880901063 2 12 SNESYSA01I 95157 1 12 SNESYSA01I BTCL35-BULK 1 12 SNESYSA01I BTCM15-BULK 1 12 SNESYSA01I BVGP150 3 12 SNESYSA01I BVKD700B 3 12 SNESYSA01I BVKD700Y 2 12 SBASYSA08A ALP/LSAS-61 1 9 SBASYSA08A ALP/MIS-3B/C 1 9 SBASYSA08A BTCL35-BULK 1 9 SBASYSA08A BVGP150 2 9 SBASYSA08A BVJ1400 1 9 SBASYSA08A BVKD700B 3 9 SBASYSA08A BVKD700Y 1 9 SBASYSA08A BVPB2025 1 9 SBASYSA08A BVQUIV 1 9 SBASYSA08A BVRG1010 5 9 SBASYSA08A BVRG3030 5 9 SBASYSA08A BVRP06L 2 9
I have tried to use the command optimize init() but I could not make it run. Here is the help link:
http://www.stata.com/manuals13/m-5optimize.pdf
I have been struggling with this issue for a while. If you need any clarification/ additional information, I am more than happy to bring them. Help would be highly appreciated. Thanks!
Comment